Get the actual road-following route geometry between any set of waypoints in a single API call
Powered by OSRM and OpenStreetMap.
β No credit card required πͺπΊ Hosted in the EU
Get Free API KeyA maplines API returns the actual road-following geometry of a route β a sequence of coordinates that traces the real road network between your waypoints. Instead of drawing a straight line between A and B, you get the path a driver would actually take, ready to render on any map.
Draw accurate driving routes on your map. Show customers or drivers exactly where the vehicle will travel, not just a crow-flies line.
Animate a delivery vehicle along the real road path. Feed route geometry into your frontend map to show live or planned progress.
Embed turn-by-turn ready route data in your app. The response includes distance, duration, and step-by-step maneuver instructions.
3 NYC landmarks. Click Run Demo to fetch the real road route from the API.
# Route geometry: Times Square β Central Park β Brooklyn Bridge
curl "https://api.simplerouting.io/osrm/route/v1/driving/-73.9855,40.7580;-73.9718,40.7678;-73.9969,40.7061?overview=full&geometries=geojson" \
-H "Authorization: Bearer 988b35cc-6183-4922-bbc0-857e1a1d318d"
This is a live demo with a real API key (feel free to steal it).
Sign up for a free key, then drop it into this curl command:
# Times Square β Central Park β Brooklyn Bridge
curl "https://api.simplerouting.io/osrm/route/v1/driving/-73.9855,40.7580;-73.9718,40.7678;-73.9969,40.7061?overview=full&geometries=geojson" \
-H "Authorization: Bearer YOUR_API_KEY"
Coordinates are longitude,latitude pairs separated by semicolons. Add ?overview=full&geometries=geojson to get the full route geometry as a GeoJSON LineString you can pass directly to Leaflet, Mapbox, or any mapping library.
Hitting the limits, want more countries, or need a bespoke solution? Email [email protected] β we'll figure it out.
The API returns a JSON object with a routes array. Each route has a geometry (GeoJSON LineString or encoded polyline), distance (meters), duration (seconds), and a legs array with per-segment steps and maneuver details.
Request with geometries=geojson and pass routes[0].geometry directly to L.geoJSON() in Leaflet, or map.addSource() in Mapbox GL JS. No coordinate decoding needed.
/route API?Yes. The endpoint follows the standard OSRM Route Service specification. If you are already using a self-hosted OSRM instance, switching is a one-line URL change plus an Authorization header.
The free tier covers North America and Europe. Need more regions? Email [email protected] β coverage is added based on demand.