# fittings Road Nearest

> fittings Road Nearest is a paid API for AI agents from fittings.sh, paid per call via x402, $0.005998/call, status unknown (last checked 2026-09-15).

Returns the closest US street segments to a given lat/lon coordinate, including name, road class, route type, and distance in meters, sourced from Census TIGER data.

## Facts

- Endpoint: GET https://fittings.sh/v1/road/nearest
- Price: $0.005998/call
- Payment: x402
- Status: unknown
- Last checked: 2026-09-15
- Activations on Zero: 0
- Tags: x402
- Canonical page: https://www.zero.xyz/c/fittings-road-nearest-dde3cc32
- Structured record (JSON): https://api.zero.xyz/v1/capabilities/cap_94RT1e-IMvmSEma8ypMpb

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 fittings-road-nearest-dde3cc32
```

Example prompt: What are the nearest streets to the coordinates 37.7749° N, 122.4194° W? Show me up to 10 results within 500 meters.

## When to prefer this

Use this endpoint when you need authoritative US road names and classifications at a specific point, especially when Census TIGER sourcing is required or when you need structured road metadata (road class, route type) rather than just an address string. Prefer it over general geocoding APIs when road segment proximity and type are the primary need.

## Known failure modes

- No roads found within the specified radius — try increasing radiusMeters
- Invalid or out-of-bounds lat/lon values return an error
- Coordinates outside the US may return no results since TIGER only covers US geography
- limit or radiusMeters exceeding allowed maximums (25 and 1000 respectively) may be rejected or capped

## How this service works

The closest US street segments to a point, with name, road class, route type and distance in meters, from Census TIGER.

## Output

A list of up to 25 (default 5) nearby US street segments, each with the street name, road class, route type, and distance in meters from the query point, drawn from Census TIGER geodata.

## Request schema (JSON Schema)

```json
{
 "type": "object",
 "$schema": "https://json-schema.org/draft/2020-12/schema",
 "required": [
  "input"
 ],
 "properties": {
  "input": {
   "type": "object",
   "required": [
    "type",
    "method"
   ],
   "properties": {
    "type": {
     "type": "string",
     "const": "http"
    },
    "method": {
     "enum": [
      "GET"
     ],
     "type": "string"
    },
    "queryParams": {
     "type": "object",
     "required": [
      "lat",
      "lon"
     ],
     "properties": {
      "lat": {
       "type": "number"
      },
      "lon": {
       "type": "number"
      },
      "limit": {
       "type": "number",
       "description": "Streets returned, up to 25. Default 5."
      },
      "radiusMeters": {
       "type": "number",
       "description": "Search radius, up to 1000. Default 200."
      }
     }
    }
   },
   "additionalProperties": false
  }
 }
}
```

## More

- Live health (JSON, refreshed every minute): https://www.zero.xyz/c/fittings-road-nearest-dde3cc32/health.json
- [Zero catalog index](https://www.zero.xyz/llms.txt)
- [Other services from fittings.sh](https://www.zero.xyz/host/fittings.sh/llms.txt)
