geonamescache - a Python library for quick access to a subset of GeoNames data.
search_cities
function. By default the attribute value is search for partial matches and search is performed case insensitive. This is different from the previous behavior, where list values were treated differently from string values and search was case sensitive by default. See issue 38. The new behavior was implemented by Chris Pigden @pigden.os
module and open
function in _load_data
instead of importlib.resources
for compatibilty with Python 3.8, implemented by Benny Elgazar @Bennyelgmin_city_population
parameter when creating a GeonamesCache
class object.alternatenames
attribute to entries in cities.json with a list of alternate city names.search_cities
function which returns a list of entries that include the query in given attribute.Adds admin1code to cities.json. Thanks to Matt Webb (@genmon) for adding this feature.