Last active
August 29, 2015 14:13
-
-
Save DenisCarriere/dc5a792bf408025649bb to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# pip install geocoder | |
# param: short_name (Default is True) | |
# param: method (Default is 'Geocode') | |
> import geocoder | |
> g = geocoder.google('41.34168 -8.71202', method='reverse', short_name=False) | |
'<[OK] Google - Reverse [IC1, 4480, Portugal]>' | |
> g.latlng | |
[41.344931, -8.7123075] | |
> g.country | |
'Portugal' |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Perfect 😄