osrmroute

OSRM Routing API

Battle-tested

Hosted 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}
ParameterTypeStatus
profilestringRequired
coordinatesstringRequired
overviewstringOptional
geometriesstringOptional
stepsbooleanOptional

Example request

Credit cost: 1 credit
curl "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

OSRMRoute Support

Talk directly to our team

HERE TO HELP

How can we help?

Send a message. Ticket replies are also sent to your verified email.

Your chats

Your chats will appear here.