Created
October 10, 2016 19:33
-
-
Save ellisvalentiner/442b51a158e369a4c5dc131e02d67dfd to your computer and use it in GitHub Desktop.
Function to geocode a zip code using Google's maps API
This file contains hidden or 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
using Requests | |
function geocodeZipcode(zipcode) | |
resp = Requests.get("http://maps.googleapis.com/maps/api/geocode/json?address=$zipcode") | |
return(Requests.json(resp)) | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment