November Happy Hour will be moved to Thursday December 5th.

Class GeoCoordinate

Inheritance
System.Object
GeoCoordinate
Namespace: EPiServer.Personalization
Assembly: EPiServer.Framework.dll
Version: 12.0.3
Syntax
public class GeoCoordinate : Object

Constructors

GeoCoordinate(Double, Double)

Declaration
public GeoCoordinate(double latitude, double longitude)
Parameters
Type Name Description
System.Double latitude
System.Double longitude

Properties

HorizontalAccuracy

Gets or sets the accuracy of the latitude and longitude that is given by the GeoCoordinate, in meters.

Declaration
public double HorizontalAccuracy { get; set; }
Property Value
Type Description
System.Double

Latitude

Gets or sets the latitude of the GeoCoordinate.

Declaration
public double Latitude { get; set; }
Property Value
Type Description
System.Double

Longitude

Gets or sets the longitude of the GeoCoordinate.

Declaration
public double Longitude { get; set; }
Property Value
Type Description
System.Double

Methods

GetDistanceTo(GeoCoordinate)

Returns the distance between the latitude and longitude coordinates that are specified by this GeoCoordinate and another specified GeoCoordinate.

Declaration
public double GetDistanceTo(GeoCoordinate other)
Parameters
Type Name Description
GeoCoordinate other

The GeoCoordinate for the location to calculate the distance to.

Returns
Type Description
System.Double

The distance between the two coordinates, in meters.

ToString()

Returns the current GeoCoordinate object's display name

Declaration
public override string ToString()
Returns
Type Description
System.String

The GeoCoordinate object's display name

Extension Methods