Snap
snap"Snap coordinate to nearest road" / "find closest road to [lat,lng]" / "is there a road at this point", snap arbitrary GPS coordinates to the nearest routable OSM road for a given profile (car / bike / foot). Use to clean noisy GPS, validate routability before calling directions, or place markers on a road network.
Example tool call
This call uses example arguments supplied in the tool’s input schema.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"radius": 50,
"profile": "driving-car",
"locations": [
[
8.681495,
49.41461
],
[
8.687872,
49.420318
]
]
},
"name": "snap"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| radius | No | ||
| profile | No | ||
| locations | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||