Prompt
How do I reverse geocode GPS coordinates into addresses?
Latest observation
Oct 15, 2026
OpenAI APIWeb search: off
To reverse geocode GPS coordinates into addresses, you convert a latitude/longitude pair into a human-readable address using a geocoding service or API.
Common ways to do it
1) Use an online geocoding API
Popular options:
- Google Maps Geocoding API
- OpenStreetMap Nominatim
- Mapbox Geocoding API
- Here / TomTom / Bing Maps
2) Example with Python and OpenStreetMap Nominatim
from geopy.geocoders import Nominatim
geolocator = Nominatim(user_agent="my_reverse_geocoder")
location = geolocator.reverse((40.748817, -73.985428), language="en")
print(location.address)
3) Example with JavaScript (fetch)
Using a reverse geocoding endpoint:
fetch("https://nominatim.openstreetmap.org/reverse?format=jsonv2&lat=40.748817&lon=-73.985428")
.then(response => response.json())
.then(data => console.log(data.display_name));
4) Example with Google Maps API
Request:
https://maps.googleapis.com/maps/api/geocode/json?latlng=40.748817,-73.985428&key=YOUR_API_KEY
Then read the formatted address from the response.
Notes
- Reverse geocoding accuracy depends on the provider and location.
- APIs often have rate limits and usage policies.
- You usually need to handle cases where no address is returned, or only a nearby street/intersection is available.
If you want, I can show you how to do this in Python, JavaScript, Android, iOS, or SQL.