MaxMind.GeoIP2 : MaxMind.GeoIP2.Model Namespace

Location Class

Contains data for the location record associated with an IP address.

Syntax

public class Location

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Members

See Also: Inherited members from object.

Public Constructors

Public Properties

[read-only]
AccuracyRadius Nullable<int> . The approximate accuracy radius in kilometers around the latitude and longitude for the IP address. This is the radius where we have a 67% confidence that the device using the IP address resides within the circle centered at the latitude and longitude with the provided radius.
[read-only]
AverageIncome Nullable<int> . The average income in US dollars associated with the IP address.
[read-only]
HasCoordinates bool . Determines whether both the Location.Latitude and Location.Longitude have values.
[read-only]
Latitude Nullable<double> . The approximate latitude of the location associated with the IP address. This value is not precise and should not be used to identify a particular address or household.
[read-only]
Longitude Nullable<double> . The approximate longitude of the location associated with the IP address. This value is not precise and should not be used to identify a particular address or household.
[read-only]
MetroCode Nullable<int> . The metro code of the location if the location is in the US. MaxMind returns the same metro codes as the Google AdWords API.
[read-only]
PopulationDensity Nullable<int> . The estimated number of people per square kilometer.
[read-only]
TimeZone string . The time zone associated with location, as specified by the IANA Time Zone Database , e.g., "America/New_York".

Public Methods

override
ToString () : string
Returns a string that represents this instance.

Member Details

Location Constructor

Constructor

Syntax

public Location ()

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Location Constructor

Constructor

Syntax

[MaxMind.Db.Constructor]
public Location ([MaxMind.Db.Parameter("accuracy_radius", false)] Nullable<int> accuracyRadius, Nullable<double> latitude, Nullable<double> longitude, [MaxMind.Db.Parameter("metro_code", false)] Nullable<int> metroCode, [MaxMind.Db.Parameter("time_zone", false)] string timeZone)

Parameters

accuracyRadius
Documentation for this section has not yet been entered.
latitude
Documentation for this section has not yet been entered.
longitude
Documentation for this section has not yet been entered.
metroCode
Documentation for this section has not yet been entered.
timeZone
Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

AccuracyRadius Property

The approximate accuracy radius in kilometers around the latitude and longitude for the IP address. This is the radius where we have a 67% confidence that the device using the IP address resides within the circle centered at the latitude and longitude with the provided radius.

Syntax

[Newtonsoft.Json.JsonProperty("accuracy_radius")]
public Nullable<int> AccuracyRadius { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

AverageIncome Property

The average income in US dollars associated with the IP address.

Syntax

[Newtonsoft.Json.JsonProperty("average_income")]
public Nullable<int> AverageIncome { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

HasCoordinates Property

Determines whether both the Location.Latitude and Location.Longitude have values.

Syntax

[Newtonsoft.Json.JsonIgnore]
public bool HasCoordinates { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Latitude Property

The approximate latitude of the location associated with the IP address. This value is not precise and should not be used to identify a particular address or household.

Syntax

[Newtonsoft.Json.JsonProperty("latitude")]
public Nullable<double> Latitude { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

Longitude Property

The approximate longitude of the location associated with the IP address. This value is not precise and should not be used to identify a particular address or household.

Syntax

[Newtonsoft.Json.JsonProperty("longitude")]
public Nullable<double> Longitude { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

MetroCode Property

The metro code of the location if the location is in the US. MaxMind returns the same metro codes as the Google AdWords API.

Syntax

[Newtonsoft.Json.JsonProperty("metro_code")]
public Nullable<int> MetroCode { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

PopulationDensity Property

The estimated number of people per square kilometer.

Syntax

[Newtonsoft.Json.JsonProperty("population_density")]
public Nullable<int> PopulationDensity { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

TimeZone Property

The time zone associated with location, as specified by the IANA Time Zone Database , e.g., "America/New_York".

Syntax

[Newtonsoft.Json.JsonProperty("time_zone")]
public string TimeZone { get; }

Value

Documentation for this section has not yet been entered.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0

ToString Method

Returns a string that represents this instance.

Syntax

public override string ToString ()

Returns

A string that represents this instance.

Remarks

Documentation for this section has not yet been entered.

Requirements

Namespace: MaxMind.GeoIP2.Model
Assembly: MaxMind.GeoIP2 (in MaxMind.GeoIP2.dll)
Assembly Versions: 2.6.0.0