get_counties_uris

Functions

get_counties_in_batches(→ list)

returns a list of all counties in US from the geonames platform, uncluding

main()

returns a csv with the uri of each county in USA. It assumes that you've

Module Contents

get_counties_uris.get_counties_in_batches(username: str) list[source]

returns a list of all counties in US from the geonames platform, uncluding a unique uri.

Parameters:

username (str) – valid username for the geonames api

Returns:

list of counties in US with the associated metadata

Return type:

list

get_counties_uris.main()[source]

returns a csv with the uri of each county in USA. It assumes that you’ve a valid username to use the geonames api and that the value is stored as an environment variable as GEONAMES_USERNAME