Get route directions
get_route_directionsCalculate route directions between two coordinates. Get distance, duration, turn-by-turn instructions, and route geometry via OSRM. Choose car, bike, or foot mode.
Instructions
Calculate route directions between two geographic points using OSRM. Returns a summary (distance in meters, duration in seconds), optional turn-by-turn directions, the route geometry (GeoJSON) and waypoints. Use steps/overview/annotations to control the response size.
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_latitude": "<from_latitude>",
"from_longitude": "<from_longitude>",
"to_latitude": "<to_latitude>",
"to_longitude": "<to_longitude>"
},
"name": "get_route_directions"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| mode | No | Transportation mode: "car", "bike" or "foot" | car |
| steps | No | Include turn-by-turn instructions | |
| overview | No | Route geometry detail | simplified |
| annotations | No | Include additional segment info | |
| to_latitude | Yes | Destination latitude (decimal degrees) | |
| to_longitude | Yes | Destination longitude (decimal degrees) | |
| from_latitude | Yes | Starting point latitude (decimal degrees) | |
| from_longitude | Yes | Starting point longitude (decimal degrees) |