Insurance
Policies define territory in words: “the Province of Madrid, excluding the municipality of Madrid”. Areas turns that clause into a polygon, or says exactly why it can't.
Paste the territory wording as written, in any language. The agent maps each place to a real boundary.
You get a validated polygon with each part's source, or a 422 naming what couldn't be mapped. Never a guess.
Store the polygon and test insured locations against it in your own database, or with the contains call.
Copy-paste examples. Search is free; the rest needs a free API key.
curl "https://geocodeai.dev/v1/boundaries/search?q=Comunidad%20de%20Madrid"curl "https://geocodeai.dev/v1/boundaries/reverse?lat=40.4168&lon=-3.7038" \
-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 Community of Madrid, excluding the municipality of Madrid","country":"ES"}'Each page has the map, the facts and the code to fetch it.