Place search & autocomplete
A location filter, a signup form, a “where do you operate?” field: people type a place and you need something you can store and query. Every suggestion carries the id of a real boundary, so the next call is its polygon.
Call suggest as the user types, free and without a key. It matches the start of a name in any language, ignoring accents and case, and lists the best-known places first.
Each suggestion has a boundary id, its level, country and region. A village with no outline of its own returns the nearest boundary containing it and names the place that matched.
Pass the id to fetch the polygon, list its subdivisions, or check up to 10,000 points against it per call.
Copy-paste examples. Search is free; the rest needs a free API key.
curl "https://geocodeai.dev/v1/boundaries/suggest?q=munc"curl "https://geocodeai.dev/v1/boundaries/reverse?lat=48.1351&lon=11.582" \
-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":"Munich and the districts that border it","country":"DE"}'Each page has the map, the facts and the code to fetch it.