MaxMind.GeoIP2 : MaxMind.GeoIP2.Model Namespace

Location Class

Contains data for the location record associated with an IP address. This record is returned by all the end points except the Country end point.

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: 0.3.2.0

Members

See Also: Inherited members from object.

Public Constructors

Documentation for this section has not yet been entered.

Public Properties

[read-only]
AccuracyRadius Nullable<int> . The radius in kilometers around the specified location where the IP address is likely to be. This attribute is only available from the Omni end point.
[read-only]
Latitude Nullable<double> . The latitude of the location as a floating point number. This attribute is returned by all end points except the Country end point.
[read-only]
Longitude Nullable<double> . The longitude of the location as a floating point number. This attribute is returned by all end points except the Country end point.
[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. This attribute is returned by all end points except the Country end point.
[read-only]
TimeZone string . The time zone associated with location, as specified by the IANA Time Zone Database, e.g., "America/New_York". This attribute is returned by all end points except the Country end point

Public Methods

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

Member Details

Location Constructor

Documentation for this section has not yet been entered.

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: 0.3.2.0

AccuracyRadius Property

The radius in kilometers around the specified location where the IP address is likely to be. This attribute is only available from the Omni end point.

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: 0.3.2.0

Latitude Property

The latitude of the location as a floating point number. This attribute is returned by all end points except the Country end point.

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: 0.3.2.0

Longitude Property

The longitude of the location as a floating point number. This attribute is returned by all end points except the Country end point.

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: 0.3.2.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. This attribute is returned by all end points except the Country end point.

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: 0.3.2.0

TimeZone Property

The time zone associated with location, as specified by the IANA Time Zone Database, e.g., "America/New_York". This attribute is returned by all end points except the Country end point

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: 0.3.2.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: 0.3.2.0