IpLookupJsonModel Class

Represents the returns of https://ipapi.co/{IpAddress}/json/. See https://ipapi.co/api/#complete-location for more information.

Definition

Namespace: MobileTrack.Common.Models
Assembly: MobileTrack.Common (in MobileTrack.Common.dll) Version: 0.7+ce90b2cf6b782b8d7b7fd47b3c546987c652c00f
public sealed class IpLookupJsonModel
Inheritance
Object    IpLookupJsonModel

Constructors

IpLookupJsonModelInitializes a new instance of the IpLookupJsonModel class

Properties

City City the IP Address is controlled from. Doesn't have to be the location of the hardware itself! This can alternate based on the provider. The name of the location is set in English and isn't localized.
CountryCallingCode Phone number calling code ("+31" for the Netherlands)
CountryCapital Capital city name of the country, in English.
CountryCode ISO 3166-1 alpha-2 country code (Example: "NL" for the Netherlands)
CountryName Name of the country, in English.
CountryPopulation Size of the population of the country.
CountryTld Web extension used by the country (.nl for the Netherlands)
Currency Currency code used in the country. Euro = "EUR".
CurrencyName Name of the Currency (in English)
InEuropeanUnion Whether the country is in the European Union. Note: this means nations like Switzerland, Norway and the UK also return false!
IpAddress The looked up IP Address
Languages Languages spoken in CountryName, separated by commas. If you want to use this property, simple chop the string by commas and make CultureInfo's from each string.
Latitude Latitude the IP Address location was determined to be in. Can be located in the internet provider's server room.
Longitude Longitude the IP Address location was determined to be in. Can be located in the internet provider's server room.
Org The name of the provider of the IP Address. (KPN, Ziggo, etc.)
Postal Postal code of the location as determined by Latitude and Longitude.
Region The province/state the IP Address is controlled from. Doesn't have to be the location of the hardware itself! This can alternate based on the provider. The name of the location is set in English and isn't localized.
RegionCode Shorthand code for the province/region of Region. (Example:"North Holland" -> "NH")
Timezone Timezone the IP Address is located in.
UtcOffset The UTC offset the timezone has. (Central Europe Time has "+0100" or "+0200", depending on whether we're in summer)
Version Ipv4/IPv6 IP Address Version

See Also