Prompt
How do I get reverse geocoding from coordinates to a street address?
Latest observation
Oct 15, 2026
OpenAI APIWeb search: off
To get a street address from latitude/longitude, you use reverse geocoding.
Common ways to do it
1) Use a geocoding API
Popular options:
- Google Maps Geocoding API
- Mapbox Reverse Geocoding
- OpenStreetMap Nominatim
- HERE / TomTom / Bing Maps APIs
You send coordinates like:
lat=40.748817, lng=-73.985428
and the API returns a formatted address such as:
350 5th Ave, New York, NY 10118, USA
2) Example with Google Maps
Request:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.748817,-73.985428&key=YOUR_API_KEY
The response includes address components and a formatted_address.
3) Example with OpenStreetMap Nominatim
Request:
https://nominatim.openstreetmap.org/reverse?lat=40.748817&lon=-73.985428&format=json
Response includes:
display_name- address parts like road, city, postcode, country
Basic workflow
- Get latitude and longitude from GPS/map.
- Call a reverse geocoding endpoint.
- Parse the returned address fields.
- Show the best formatted address to the user.
Important notes
- Some APIs require an API key
- Many services have rate limits
- Results may vary in precision:
- exact street address
- nearest road
- landmark
- city/region only
If you want, I can show you:
- a JavaScript example
- a Python example
- or a free OpenStreetMap-based solution