Skip to content

Latest commit

 

History

History
31 lines (21 loc) · 925 Bytes

README.md

File metadata and controls

31 lines (21 loc) · 925 Bytes

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()