get_route_directions
Calculate route directions between two coordinates using OpenStreetMap. Supports car, bike, and foot modes with optional turn-by-turn instructions.
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 }
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 |