OSRM Directions API
NavigationHosted OSRM (Open Source Routing Machine) — production-ready API, no self-hosting.
Turn-by-turn navigation with a clean, easy-to-render instruction list for car, bike and foot.
Overview
The Directions API returns turn-by-turn navigation between two or more waypoints. Each step comes with human-readable text, distance, duration, maneuver type and the exact location — ready to render in a navigation UI. It supports driving, cycling and walking, plus alternative routes in one call.
API reference
GET
/api/1/directions| Parameter | Type | Status |
|---|---|---|
| point | string | Required |
| profile | string | Optional |
| alternatives | integer | Optional |
| lang | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/directions?point=40.3777,49.8516&point=40.40,49.86&profile=driving&key=YOUR_KEY"
Other services
Routing APIRoute Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Location ClusteringAlternative Routes APISnap to Road APIAutocomplete APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APISolar APIGeometry Utilities APICoordinate Conversion APICountry Info API