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

Class GeoCoordinate

Inheritance
System.Object
GeoCoordinate
Inherited Members
System.Object.Equals(System.Object)
System.Object.Equals(System.Object, System.Object)
System.Object.ReferenceEquals(System.Object, System.Object)
System.Object.GetHashCode()
System.Object.GetType()
System.Object.MemberwiseClone()
Namespace: EPiServer.Personalization
Assembly: EPiServer.Framework.dll
Version: 9.12.2
Syntax
public class GeoCoordinate

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

Overrides
System.Object.ToString()

Extension Methods