Boundary Lookup API
Find which country, state, city and district a coordinate falls in — with the boundary polygon on request.
/api/1/boundaryCurrent plan limits
Free includes Routing, Route Optimization, Geocoding (including reverse lookup and autocomplete) and Matrix APIs within plan limits. Map Matching, Isochrone, Truck Routing, Fuel Estimate and other separate APIs require a paid plan, including PAYG. API access follows the account’s effective plan; a positive balance alone does not override Free restrictions. Road Data and AI retain their 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 pricingOverview
The Boundary Lookup API tells you which administrative areas a coordinate falls in — country, state, county, city and district — from self-hosted OSM data. Optionally return the containing boundary as GeoJSON to draw it on a map. Perfect for regional pricing, compliance, territory assignment and analytics.
API reference
/api/1/boundary| Parameter | Type | Status |
|---|---|---|
| point | string | Required |
| polygon | boolean | Optional |
| lang | string | Optional |
Example request
Credit cost: 1 creditcurl "https://osrmroute.com/api/1/boundary?point=40.4093,49.8671" -H "Authorization: Bearer YOUR_KEY"