Prompt
API for map boundaries and geocoding
Latest observation
Oct 8, 2026
OpenAI APIWeb search: off
If you mean APIs for map boundaries and geocoding, here are the common options depending on what you need:
1) Geocoding APIs
Convert address → coordinates or coordinates → address.
- Google Geocoding API
- Very accurate, widely used
- Paid, with usage limits
- Mapbox Geocoding API
- Good developer experience
- Forward + reverse geocoding
- OpenStreetMap Nominatim
- Free/open, but rate-limited and not ideal for heavy production use unless self-hosted
- HERE Geocoding API
- Strong global coverage
- TomTom Geocoding API
- Good alternative with mapping tools
2) Map boundary / polygon / administrative boundary APIs
Used to get city, district, state, country boundaries, or custom regions.
- GeoNames
- Administrative boundaries and place data
- OpenStreetMap / Overpass API
- Can query boundary relations and polygons
- Mapbox Boundaries
- Commercial dataset/API for administrative boundaries
- Google Places / Geocoding
- Can return viewport/bounds for places, but not full boundary polygons
- Natural Earth / GADM / OpenData portals
- For downloadable boundary datasets rather than live APIs
3) If you need both in one workflow
Typical approach:
- Geocode an address using Geocoding API
- Use the returned lat/lng
- Check which boundary polygon contains that point using:
- PostGIS
- Turf.js
- Shapely / GeoPandas
- ArcGIS / GIS services
4) Example use cases
- “Find coordinates for this address” → geocoding API
- “Get the city boundary of Paris” → boundary dataset/API
- “Check if this coordinate is inside New York City” → point-in-polygon with boundary data
5) Recommendation
- For production geocoding: Google or Mapbox
- For open/free geocoding: Nominatim
- For boundaries: OSM/Overpass, GADM, or Mapbox Boundaries
If you want, I can give you:
- a list of specific APIs with pricing
- a Python example
- or a Node.js example for geocoding + boundary lookup.