georefdata

Country Codes and other Miscellaneous Geo-Spatial Reference Data


Keywords
location, geo, python
License
Apache-2.0
Install
pip install georefdata==1.4

Documentation

georefdata

Country Codes and other Miscellaneous Geo-Spatial Reference Data

install

pip install georefdata

usage

import georefdata

georefdata.get_country_codes()
# ['AF', 'AL', 'DZ', 'AS', 'AD', ... 'ZW']

georefdata.get_geonames_feature_classes()
# ['A', 'H', 'L', 'P', 'R', 'S', 'T', 'U', 'V', 'n']

georefdata.get_geonames_feature_codes()
# ['ADM1', 'ADM1H', 'ADM2', ... 'ZNF', 'ZOO', 'null]

georefdata.get_timezones()
#['Africa/Abidjan', 'Africa/Accra', ... 'Pacific/Wake', 'Pacific/Wallis']


attribution

GeoNames uses Attribution 4.0 International (CC BY 4.0), which requires attribution. GeoNames Feature Classes, GeoNames Feature Codes, and Time Zones come from GeoNames.

links

http://download.geonames.org/export/dump/featureCodes_en.txt http://download.geonames.org/export/dump/timeZones.txt