snap_to_roads
Snap GPS coordinates to the nearest road segments on OpenStreetMap for accurate location mapping in driving, walking, or cycling contexts.
Instructions
Snap coordinates to nearest road segments
Input Schema
TableJSON Schema
| Name | Required | Description | Default |
|---|---|---|---|
| coordinate | Yes | [longitude, latitude] coordinate to snap | |
| profile | No | Routing profile (default: driving) | |
| number | No | Number of nearest roads to return (default: 1) |