About this endpoint
What it does
Finds the nearest major road segment for the provided latitude and longitude, with an optional maximum search distance in meters.
Query Parameter(s)
| Attribute | Type | Mandatory | Description |
|---|---|---|---|
| lat | Number | Yes | Latitude in degrees. Minimum -90, maximum 90. |
| lon | Number | Yes | Longitude in degrees. Minimum -180, maximum 180. |
| max_distance_m | Integer | No | Maximum search distance in meters. Default 2000. Minimum 50, maximum 50000. |
Response
Returns a JSON object containing the matched road segment and related metadata.