GeoLocation Class

The geo-location context attached to the ip entity.

Variables are only populated by the server, and will be ignored when sending a request.

Inheritance
GeoLocation

Constructor

GeoLocation(**kwargs)

Variables

asn
int

Autonomous System Number.

city
str

City name.

country_code
str

The country code according to ISO 3166 format.

country_name
str

Country name according to ISO 3166 Alpha 2: the lowercase of the English Short Name.

latitude
float

The longitude of the identified location, expressed as a floating point number with range of -180 to 180, with positive numbers representing East and negative numbers representing West. Latitude and longitude are derived from the city or postal code.

longitude
float

The latitude of the identified location, expressed as a floating point number with range of - 90 to 90, with positive numbers representing North and negative numbers representing South. Latitude and longitude are derived from the city or postal code.

state
str

State name.