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.
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) |