OSRMRoute

Boundary Lookup API

Global

Find which country, state, city and district a coordinate falls in — with the boundary polygon on request.

Overview

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

GET/api/1/boundary
ParameterTypeStatus
pointstringRequired
polygonbooleanOptional
langstringOptional

Example request

Credit cost: 1 credit
curl "https://osrmroute.com/api/1/boundary?point=40.4093,49.8671&key=YOUR_KEY"

Other services