Tax jurisdictions
Sales tax, tourist levies and local fees follow administrative lines, not postcodes. Reverse-geocode a point to every boundary that contains it and apply the rules of each.
One call returns every cached boundary that contains the coordinates, smallest first, with kind and admin level.
Key your rate tables by our stable boundary ids (OSM relation ids), not by names that change spelling.
Store the id and fetch date with each transaction; the polygon behind it can be re-fetched any time.
Copy-paste examples. Search is free; the rest needs a free API key.
curl "https://geo-coder-service.vercel.app/v1/boundaries/search?q=Cook%20County"curl "https://geo-coder-service.vercel.app/v1/boundaries/reverse?lat=41.8781&lon=-87.6298" \ -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":"The City of Chicago, excluding O'Hare International Airport","country":"US"}'