Skip to content

Python script for batch geocoding using NYC Planning Labs' Geosearch API

Notifications You must be signed in to change notification settings

hannahkates/geocoding-labsgeosearch

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

geocoding-labsgeosearch

Python script for batch geocoding using NYC Planning Labs' Geosearch API

Instructions:

  1. Create a folder on your computer where you save the python script for your version of Python. Use geosearch_2.py if you're using Python 2. Alternatively, use geosearch_3.py if you're using Python 3.
  2. Place the ungeocoded data csv file in the same folder as the python script.
  3. Open your data csv to identify which column #s are relevant for the geocoding script. Begin counting from zero.
  4. Update the column numbers for the house number, street name, and borough columns in the python script on lines 10-14.
  5. Via the command line, navigate inside the folder.
  6. Run the script by running python geosearch_v.py input.csv output.csv in the command line, filling in the appropriate vairables:
    • _v version for your Python version
    • input csv file name
    • preferred output file name

If the script is running correctly, you will see it printing the results in the terminal for each row it iterates through.

About

Python script for batch geocoding using NYC Planning Labs' Geosearch API

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages