GeoIP2.lon_lat(query) Returns a coordinate tuple of (longitude, latitude).
GeoIP2.country(query) Returns a dictionary with the country code and country for the given query.
GeoIP2.geos(query) Returns a
class GeoIP2(path=None, cache=0, country=None, city=None) The GeoIP object does not require any parameters to use
GeoIP2.country_name(query) Returns the country name corresponding to the query.
GeoIP2.city(query) Returns a dictionary of city information for the given query. Some of the values in the dictionary may be
GeoIP2.country_code(query) Returns the country code corresponding to the query.
GeoIP2.coords(query) Returns a coordinate tuple of (longitude, latitude).
GeoIP2.lat_lon(query) Returns a coordinate tuple of (latitude, longitude),