Created
July 15, 2012 21:13
-
-
Save mjrich/3118660 to your computer and use it in GitHub Desktop.
Google Refine Geocoding
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
Step One | |
Fetch URL based on column: | |
'http://www.datasciencetoolkit.org/maps/api/geocode/json?sensor=false&address=' + escape(value, 'url')' | |
Step Two | |
Parse Json for longitude: | |
value.parseJson()["results"][0]["geometry"]["location"]["lng"] | |
then latitude: | |
value.parseJson()["results"][0]["geometry"]["location"]["lat"] | |
Source: http://www.youtube.com/watch?v=5tsyz3ibYzk&feature=player_embedded |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Clickable Google Refine Video Instructions