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
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"coordinate": "<coordinate>"
},
"name": "snap_to_roads"
}
}Input 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) |