Add enterprise-grade routing to your apps via a REST API. Get started right away with clear documentation, ready-made code samples and the high-performance OSRM engine.
Our geospatial engine is optimized to handle high loads and compute the most optimal result in milliseconds.
From point A to point B: industry-grade routing for different transport modes. Turn instructions, elevation profiles and accurate arrival times (ETA) — all within a single API.
Handle complex logistics and turn your fleet's toughest routing tasks into efficient delivery plans. Work with time windows, driver skills and custom vehicle constraints.
Connect place with logic: convert addresses to coordinates and coordinates to precise real addresses. High-performance geocoding and reverse geocoding for enterprise-grade applications.
Fast distance computation at scale: instantly compute the time and distance matrix between hundreds of points at once. Speed up your optimization algorithms based on real road networks.
Analyze travel time with reachability maps. Generate custom coverage polygons for any point, tailored to transport mode and road preferences.
Snap noisy GPS signals to the real road network. Turn scattered tracking coordinates into clean, accurate and logical route data.
Get the job done fast with tools that make setup easy.
Documentation covering every API detail, from getting-started guides to complex routing scenarios.
Send API requests and see the results instantly, both as code and on an interactive map. The fastest testing tool.
Use our official JavaScript, Python and Java SDK libraries to speed up your integration.
Our geospatial routing infrastructure is specifically tuned to solve the toughest logistics and courier problems fast.
Routes are computed instantly via OSRM's internal optimized C++ engine.
Our high-availability clusters are ready to answer your requests at any moment.
All internal roads, speed limits and geographic features are updated every day.
# 1. Send a route request with your API key
curl -X GET "https://osrmroute.com/api/v1/route/driving/\
49.8671,40.4093;49.8550,40.4150?overview=full&key=YOUR_API_KEY"
# 2. Fast JSON response returned from the server
{
"code": "Ok",
"routes": [{
"geometry": {
"coordinates": [[49.8671, 40.4093], ...],
"type": "LineString"
},
"distance": 3254.2,
"duration": 245.8
}]
}