Directions API
NavigationTurn-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"