Ask HN: API to discover lat/long coordinates from a city name and country
6 comments
It's called geocoding. There are several free services who provide API. Here are two of them from the first page of my search results:
https://geoservices.tamu.edu/Services/Geocode/WebService/
http://developer.mapquest.com/web/products/dev-services/geoc...
https://geoservices.tamu.edu/Services/Geocode/WebService/
http://developer.mapquest.com/web/products/dev-services/geoc...
thank you so much!
Geonames.org has files containing zip code, city and, lat/lon:
http://download.geonames.org/export/zip/
Hope this helps.
Hope this helps.
Sure it helps! Even if this database does not contain every city that I wanna check, it definitely helps.
thank you very much
thank you very much
Google's Geocoding API does just that.
Example:
Example:
https://maps.googleapis.com/maps/api/geocode/json?address=Berlin&sensor=falsethanks! That is exactly what I was looking for!
Is there any API I can use to get this kind of data? Google and Foursquare did not seem to help with that
thanks for your time
UPDATE: you people are amazing, thanks for the responses!