route
routeDirections between places (addresses, names or lat,lon) with optional stops: distance in km and miles, travel time, and turn-by-turn steps for driving, trucks, cycling, walking or transit, avoiding tolls, highways or ferries; optional GeoJSON route line. Costs $0.005 USDC per call (x402).
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": {
"from": "<from>",
"to": "<to>"
},
"name": "route"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| to | Yes | ||
| via | No | Stops separated by | | |
| from | Yes | ||
| mode | No | drive (default), truck, bicycle, walk, transit, ... | |
| avoid | No | tolls|highways|ferries | |
| units | No | metric or imperial | |
| geometry | No | true to include the route line |