# OSRM Nearest Road Snap (clonecho.builda.company)

> OSRM Nearest Road Snap (clonecho.builda.company) is a paid API for AI agents from clonecho.builda.company, paid per call via x402, $0.01/call, status unknown (last checked 2026-09-16).

Snaps a geographic coordinate (lat/lon) to the nearest drivable road segment using OSRM, returning road metadata as JSON.

## Facts

- Endpoint: POST https://clonecho.builda.company/x402/nearest-road
- Price: $0.01/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-16
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/osrm-nearest-road-snap-clonecho-builda-company-e4a448ef
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_4dye952lYJFYA58JhQ1qM

Status and success rate cover calls made through Zero and Zero's own probes. Third-party monitors may report differently.

## How to call it through Zero

Zero handles the 402 payment challenge and records the run. With the Zero CLI installed (`npm i -g @zeroxyz/cli`):

```sh
zero fetch --capability osrm-nearest-road-snap-clonecho-builda-company-e4a448ef -d '<json body>'
```

Example prompt: Can you snap the coordinate 40.7128, -74.0060 to the nearest drivable road segment and tell me what road it's on?

## When to prefer this

Use this endpoint when you need to align raw GPS coordinates to the actual road network — ideal for preprocessing location data before routing, cleaning up noisy GPS traces, or determining which road a point belongs to. Prefer this over full routing endpoints when you only need the nearest road snap, not a full route.

## Known failure modes

- Invalid or out-of-range latitude/longitude returns an error
- Coordinate in a location with no road data (e.g. middle of ocean) returns no match
- Missing lat or lon query parameter causes a bad request error
- Payment not processed results in 402 response
- OSRM backend unavailable causes timeout or 5xx error

## How this service works

TRANSPORT: snap a coordinate (?lat=&lon=) to the nearest drivable road segment via OSRM. Returns JSON.

## Output

A JSON object containing the snapped road coordinate, distance from the input point to the nearest road, and road segment metadata such as name and node identifiers, sourced from the OSRM routing engine.

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/osrm-nearest-road-snap-clonecho-builda-company-e4a448ef/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from clonecho.builda.company](https://www.zero.xyz/host/clonecho.builda.company/llms.txt)
