Skip to content

Query the City of Philadelphia's Address Information System

License

Notifications You must be signed in to change notification settings

PhilaController/ais2gpd

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ais2gpd

A Python utility to query the City of Philadelphia's Address Information System (AIS). Additional documentation on the AIS API is available here.

Notes

  • AIS currently requires an API key. City of Philadelphia employees can request a key using these instructions
  • AIS will only successfully geocode addresses in Philadelphia

Installation

Via PyPi:

pip install ais2gpd

Example

import ais2gpd
import os

# Assuming your AIS API key is stored in an environment variable called `AIS_API_KEY`
ais_key = os.environ['AIS_API_KEY']

# Get the geocoded addresses
gdf = ais2gpd.get(['1234 market st', '945 N 5th st'], ais_key, fields=['zip_code', 'police_district'])

gdf.head()

About

Query the City of Philadelphia's Address Information System

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages