Postcode boundaries
Sales territories, delivery zones and pricing often follow postcodes. Search a code, get its polygon if it is mapped as an area, and if it isn't, get its location and every boundary around it instead.
Search by postcode with a country filter, free and without a key. You get the postcode area and its parents: city, district, state.
Fetch the geometry as GeoJSON, KML, WKT, GML or SVG, simplified for maps or at full detail, and store it.
Check up to 10.000 customer locations per call against your postcode polygons, or reverse-geocode one point to every area that contains it.
Beispiele zum Kopieren. Die Suche ist kostenlos; alles andere braucht einen kostenlosen API-Schlüssel.
curl "https://geocodeai.dev/v1/boundaries/search?q=80331"curl "https://geocodeai.dev/v1/boundaries/reverse?lat=48.1374&lon=11.5755" \
-H "Authorization: Bearer $GEOCODE_API_KEY"curl -X POST "https://geocodeai.dev/v1/areas" \
-H "Authorization: Bearer $GEOCODE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"text":"The city of Munich, excluding the Altstadt-Lehel district","country":"DE"}'