This topic has not yet been rated - Rate this topic

GeoCoordinate Class

March 22, 2012

Represents a location expressed as a geographic coordinate. The values exposed by this class use the WGS 84 standard.

System.Object
  System.Device.Location.GeoCoordinate

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)
XMLNS for XAML: Not mapped to an xmlns.
public class GeoCoordinate : IEquatable<GeoCoordinate>
<GeoCoordinate .../>

The GeoCoordinate type exposes the following members.

  Name Description
Public method GeoCoordinate() Initializes a new instance of the GeoCoordinate class where the value of each field is not a number.
Public method GeoCoordinate(Double, Double) Initializes a new instance of the GeoCoordinate class with the provided latitude and longitude.
Public method GeoCoordinate(Double, Double, Double) Initializes a new instance of the GeoCoordinate class with the provided latitude, longitude, and altitude.
Public method GeoCoordinate(Double, Double, Double, Double, Double, Double, Double) Initializes a new instance of the GeoCoordinate class with the provided latitude, longitude, altitude, accuracy, speed, and course.
Top
  Name Description
Public property Altitude Gets or sets the altitude of the GeoCoordinate in meters.
Public property Course Gets or sets the heading in degrees, relative to true north. GeoCoordinate.
Public property HorizontalAccuracy Gets or sets the horizontal accuracy of the GeoCoordinate, in meters.
Public property IsUnknown Gets a value indicating whether the GeoCoordinate contains any geographic coordinate data.
Public property Latitude Gets or sets the latitude of the GeoCoordinate.
Public property Longitude Gets or sets the longitude of the GeoCoordinate.
Public property Speed Gets the speed of the GeoCoordinate in meters per second.
Public property VerticalAccuracy Gets or sets the vertical accuracy of the GeoCoordinate, in meters.
Top
  Name Description
Public method Equals(Object) Determines whether the specified object is a GeoCoordinate that has the same latitude and longitude values as this one. (Overrides Object.Equals(Object).)
Public method Equals(GeoCoordinate) Determines whether the specified GeoCoordinate has the same latitude and longitude values as this one.
Protected method Finalize (Inherited from Object.)
Public method GetDistanceTo Returns the calculated distance, in meters, from the current GeoCoordinate to the provided GeoCoordinate.
Public method GetHashCode Returns a hash code for this instance. (Overrides Object.GetHashCode().)
Public method GetType (Inherited from Object.)
Protected method MemberwiseClone (Inherited from Object.)
Public method ToString Returns a string representation of the current GeoCoordinate. (Overrides Object.ToString().)
Top
  Name Description
Public operator Static member Equality Determines whether two GeoCoordinate objects are equal.
Public operator Static member Inequality Determines whether two GeoCoordinate objects are not equal.
Top
  Name Description
Public field Static member Unknown Represents a GeoCoordinate that contains no data.
Top

Windows Phone OS

Supported in: 7.1, 7.0

Windows Phone

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Did you find this helpful?
(1500 characters remaining)