Analytics & BI
Rolling events up to regions and drawing choropleths both need the same thing: clean polygons with stable ids. Fetch them from one API, simplified to the zoom you draw at.
List the children of a country or region and fetch each at low detail for maps.
Reverse-geocode event coordinates to the boundary ids you report on.
Load the GeoJSON into your BI tool, notebook or deck.
Copy-paste examples. Search is free; the rest needs a free API key.
curl "https://geo-coder-service.vercel.app/v1/boundaries/search?q=Nairobi"curl "https://geo-coder-service.vercel.app/v1/boundaries/reverse?lat=-1.2921&lon=36.8219" \ -H "Authorization: Bearer $GEOCODE_API_KEY"curl -X POST "https://geo-coder-service.vercel.app/v1/areas" \ -H "Authorization: Bearer $GEOCODE_API_KEY" \ -H "Content-Type: application/json" \ -d '{"text":"Nairobi, Kiambu and Machakos counties","country":"KE"}'