Skip to content

Instantly share code, notes, and snippets.

@dylan4224
Forked from zfz/reverse_geocoder_example.py
Last active August 29, 2015 14:19
Show Gist options
  • Save dylan4224/53ef986a8c90bcf9d429 to your computer and use it in GitHub Desktop.
Save dylan4224/53ef986a8c90bcf9d429 to your computer and use it in GitHub Desktop.
In [1]: import reverse_geocoder as rg
In [2]: coordinates = (39.99, 116.48),
In [3]: results = rg.search(coordinates)
Loading formatted geocoded file...
In [4]: print results
[{'name': 'Wangjing', 'cc': 'CN', 'lon': '116.47284', 'admin1': 'Beijing', 'admin2': '', 'lat': '39.9933'}]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment