osrmroute
Products
Navigation

Search Along Route API

Discover useful stops and compare their additional driving time.

Illustrative example
/api/v1/places/along-route
Request credits
14
Required scopes
places + route

Current plan limits

Free includes Routing, Route Optimization, Geocoding and Matrix within plan limits, plus a limited Truck Routing trial. Map Matching, Isochrone, Fuel Estimate and other separate APIs require a paid plan. Road Data and AI have separate Business requirements.

Replace YOUR_KEY with your own API key. Paid API requests consume credits; copying this example does not send a request.

Current plans and pricing

Usage and limits

Driving routes up to 200 km. Five sampled locations and at most eight candidate detours; discovery is not exhaustive. Categories: fuel, charging_station, restaurant, cafe, parking, pharmacy. No live traffic or charger availability.

Request example

Send your key in the Authorization: Bearer header. Coordinates use [longitude, latitude]. Set OSRM_API_KEY in your server environment; never expose a secret in browser code.

cURL
curl --fail-with-body -X POST "https://osrmroute.com/api/v1/places/along-route" \
  -H "Authorization: Bearer $OSRM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"start":[13.405,52.52],"end":[13.3777,52.5163],"category":"cafe","max_detour_seconds":600,"limit":5}'
Response
places[]
baseline.duration_seconds
baseline.distance_meters
discovery
duration_model

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.