The administrative boundary of Madrid, a city in Comunidad de Madrid, Spain, covering 604.3 km². Get its polygon in one call, as GeoJSON, KML, WKT, GML or SVG.
Copy-paste calls for r5326784. One unit each with a free key; the low-detail polygon also works without one.
curl "https://geo-coder-service.vercel.app/v1/boundaries/r5326784?detail=medium" \ -H "Authorization: Bearer $GEOCODE_API_KEY"curl -X POST "https://geo-coder-service.vercel.app/v1/boundaries/r5326784/contains" \ -H "Authorization: Bearer $GEOCODE_API_KEY" \ -H "Content-Type: application/json" \ -d '{"points":[[-3.6858,40.4778]]}'https://geo-coder-service.vercel.app/v1/boundaries/r5326784.geojson?detail=mediumhttps://geo-coder-service.vercel.app/v1/boundaries/r5326784.kml?detail=mediumhttps://geo-coder-service.vercel.app/v1/boundaries/r5326784.wkt?detail=mediumhttps://geo-coder-service.vercel.app/v1/boundaries/r5326784.svg?detail=mediumhttps://geo-coder-service.vercel.app/v1/boundaries/r5326784.gml?detail=mediumEach export redirects to a permanent CDN file. Add ?detail=low|medium|high|full. Formats
Get the Madrid boundary (r5326784) from Geocode AI as GeoJSON and tell me which of my locations are inside it.With the MCP server or the Claude and Codex plugins.
Boundary data © OpenStreetMap contributors, ODbL. Need several boundaries as one zone, or a zone written in words?