county-adjacency

This package provides adjacency information for US counties (or their equivalent).


Keywords
geography, geo, counties, us
License
MIT
Install
pip install county-adjacency==0.1.3

Documentation

County Adjacency

This package provides adjacency information for US counties (or their equivalent). This data is derived from the US Census website.

Example

from county_adjacency import get_neighboring_areas, CountyNotFoundError, supported_areas

try:
    print(get_neighboring_areas("San Francisco County, CA"))
except CountyNotFoundError as error:
    print(error)

('Contra Costa County, CA', 'Marin County, CA', 'San Mateo County, CA')


supported_areas()

('Autauga County, AL', 'Baldwin County, AL', ... , 'St. John Island, VI', 'St. Thomas Island, VI')