osrmroute
Products
Data

Dataset Query API

Find nearby features in your own uploaded geographic datasets.

Illustrative example
/api/v1/maps/datasets/{id}/query
Request credits
1
Required scopes
maps

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

Only datasets owned by the key owner are accessible. Radius: 0–50,000 m; limit: 1–50. Results contain nearest points and estimated local distances, not road distance or original full geometries. Empty successful results also cost one credit.

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/maps/datasets/$DATASET_ID/query" \
  -H "Authorization: Bearer $OSRM_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"point":[2.3522,48.8566],"radius":1000,"limit":10}'
Response
type: FeatureCollection
features[].geometry.type: Point
features[].properties
returned

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.