Skip to content

A Python Geocoder that parses raw address data into structured address components using the Google Geocoding API

Notifications You must be signed in to change notification settings

NickB23/geocoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Geocoder that parses raw address data into structured address components using the Google Geocoding API

Output

How does it work?

Copy your raw address data into input.csv. Every address on a new line. Leave the first line with 'address'. The program will output the results as a clean CSV file you can use in your projects. Uncomment line 13 in get_address.py if you want to see the requested output in your terminal

Clone the repo and run the script in command prompt or terminal as:

python main.py

Once complete, you will have a CSV file called result.csv with the formatted address data.

Google Maps Geocoding API

Google Maps Geocoding API is a service that provides geocoding and reverse geocoding for an address.

Each Google Maps Web Service request requires an API key that is freely available with a Google Account at Google Developers Console. The type of API key you need is a Server key.

How to get an API Key

  • Visit the Google Maps Platform Page Here
  • Create a new project or select one of your existing ones.
  • Enable the Geocoding API.
  • Create a new Server Key.
  • Add your key to main.py

Important: Do not ever share your API Key! Keep them secure.

About

A Python Geocoder that parses raw address data into structured address components using the Google Geocoding API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages