Skip to content

Latest commit

 

History

History
 
 

18-Geocoding-and-Geolocation

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
 
 
 
 
 
 
 
 

Geocoding and reverse geocoding with Python

Overview:

Today we'll learn how to geocode addresses to latitude/longitude, explore locations with the Google Places API, reverse geocode latitude/longitude to an address, and reverse geocode latitude/longitude to block FIPS code.

Readings:

Getting Started:

You'll need a Google API key to use the Google Places API Web Service:

  1. Go to https://console.developers.google.com/project and sign in
  2. Create a new project and call it cp255, then click create
  3. On the screen with all the APIs listed, click "Google Places API Web Service" under Google Maps APIs, then click the Enable API button
  4. Go to Credentials and click create credentials, choose API Key
  5. Copy your API key when it is displayed, then create keys.py with the line google_maps_api_key='YOUR-KEY-HERE'

Example API calls:

Class Session:

Run through the IPython notebook.