get_route_directions
Calculate route directions between two latitude/longitude points for car, bike, or foot travel, with optional turn-by-turn steps and route geometry.
Instructions
Calculate detailed route directions between two geographic points.
This tool provides comprehensive routing information between two locations using OpenStreetMap/OSRM. The output can be minimized using the steps, overview, and annotations parameters to reduce the response size.
Args: from_latitude: Starting point latitude (decimal degrees) from_longitude: Starting point longitude (decimal degrees) to_latitude: Destination latitude (decimal degrees) to_longitude: Destination longitude (decimal degrees) ctx: Context (provided internally by MCP) mode: Transportation mode ("car", "bike", "foot") steps: Turn-by-turn instructions (True/False, Default: False) overview: Geometry output ("full", "simplified", "false"; Default: "simplified") annotations: Additional segment info (True/False, Default: False)
Returns: Dictionary with routing information (summary, directions, geometry, waypoints)
Example: { "from_latitude": 51.3334193, "from_longitude": 9.4540423, "to_latitude": 51.3295516, "to_longitude": 9.4576721, "mode": "car", "steps": false, "overview": "simplified", "annotations": false }
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 | car | |
| steps | No | ||
| overview | No | simplified | |
| annotations | No | ||
| to_latitude | Yes | ||
| to_longitude | Yes | ||
| from_latitude | Yes | ||
| from_longitude | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |