OSRM Routing API
Battle-testedHosted OSRM (Open Source Routing Machine) — a production API without self-hosting.
Calculate routes, distances and estimated travel times on the road network. Explore available transport profiles, route geometry and integration examples.
GET
/api/v1/osrm/route/v1/{profile}/{coordinates}Overview
The Routing API calculates routes on the road network between two or more points and returns geometry, distance, estimated duration and optional instructions. Driving coverage is global; walking and cycling use regional graphs. Response time depends on region, graph cache and request complexity. Test representative journeys for your application.
Ready-made transport profiles
Turn-by-turn navigation instructions
Elevation profiles and obstacles
Per-request truck dimensions and weight (separate API)
API reference
GET
/api/v1/osrm/route/v1/{profile}/{coordinates}| Parameter | Type | Status |
|---|---|---|
| profile | string | Required |
| coordinates | string | Required |
| overview | string | Optional |
| geometries | string | Optional |
| steps | boolean | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/v1/osrm/route/v1/driving/49.8516,40.3777;49.86,40.40?steps=true&overview=full&geometries=geojson&key=YOUR_KEY"
Other services
Route Optimization APIGeocoding APIPlaces APIMatrix APIIsochrones APIMap Matching APINearest APITrip API (TSP)Location ClusteringDirections APIAlternative Routes APISnap to Road APIAutocomplete APIBatch Geocoding APITimezone APIElevation APIBoundary Lookup APIGeofencing APIElevation Profile APISolar APIGeometry Utilities APICoordinate Conversion APICountry Info API