Skip to content

Instantly share code, notes, and snippets.

@ellisvalentiner
Created October 10, 2016 19:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save ellisvalentiner/442b51a158e369a4c5dc131e02d67dfd to your computer and use it in GitHub Desktop.
Save ellisvalentiner/442b51a158e369a4c5dc131e02d67dfd to your computer and use it in GitHub Desktop.
Function to geocode a zip code using Google's maps API
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