Class GeoCoordinate
Inheritance
System.Object
GeoCoordinate
Namespace: EPiServer.Personalization
Assembly: EPiServer.Framework.dll
Version: 12.0.3Syntax
public class GeoCoordinate : Object
Constructors
GeoCoordinate(Double, Double)
Declaration
public GeoCoordinate(double latitude, double longitude)
Parameters
Type | Name | Description |
---|---|---|
System. |
latitude | |
System. |
longitude |
Properties
HorizontalAccuracy
Gets or sets the accuracy of the latitude and longitude that is given by the Geo
Declaration
public double HorizontalAccuracy { get; set; }
Property Value
Type | Description |
---|---|
System. |
Latitude
Gets or sets the latitude of the Geo
Declaration
public double Latitude { get; set; }
Property Value
Type | Description |
---|---|
System. |
Longitude
Gets or sets the longitude of the Geo
Declaration
public double Longitude { get; set; }
Property Value
Type | Description |
---|---|
System. |
Methods
GetDistanceTo(GeoCoordinate)
Returns the distance between the latitude and longitude coordinates that are specified by this Geo
Declaration
public double GetDistanceTo(GeoCoordinate other)
Parameters
Type | Name | Description |
---|---|---|
Geo |
other | The Geo |
Returns
Type | Description |
---|---|
System. |
The distance between the two coordinates, in meters. |
ToString()
Returns the current Geo
Declaration
public override string ToString()
Returns
Type | Description |
---|---|
System. |
The Geo |