OSRMRoute

Directions API

Navigation

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
ParameterTypeStatus
pointstringRequired
profilestringOptional
alternativesintegerOptional
langstringOptional

Example request

Credit cost: 1 credit
curl "https://osrmroute.com/api/1/directions?point=40.3777,49.8516&point=40.40,49.86&profile=driving&key=YOUR_KEY"

Other services