get_route_directions
Calculate route directions between two geographic points using OpenStreetMap/OSRM. Specify transportation mode, turn-by-turn steps, geometry overview, and segment annotations for detailed or minimized routing information.
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 |
---|---|---|---|
annotations | No | ||
from_latitude | Yes | ||
from_longitude | Yes | ||
mode | No | car | |
overview | No | simplified | |
steps | No | ||
to_latitude | Yes | ||
to_longitude | Yes |