[ddj] Reverse Geocoding Country: Best Practice

Philip Shemella philip at datacat.ch
Wed Nov 12 10:40:28 UTC 2014


The Google geocoding API provides reverse geocoding 
<https://developers.google.com/maps/documentation/geocoding/#reverse-example> 
and even allows limited lookups without a key. (To register 
<https://developers.google.com/maps/documentation/geocoding/#api_key>and 
get a key is also free.)

I shared a simple python (2.7) script 
<https://gist.github.com/philshem/564ef37a96b3f4dd575c#file-revgeo> that 
takes a list of latitude/longitude and prints a CSV with the country.

Output would look like this:
/    40.714224,-73.961452,US,United States//
//    47.3667,8.55,CH,Switzerland/

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.okfn.org/pipermail/data-driven-journalism/attachments/20141112/3c55ce1c/attachment-0003.html>


More information about the data-driven-journalism mailing list