GeoCoordinate Class

July 28, 2014

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.

  NameDescription
Public methodGeoCoordinate()Initializes a new instance of the GeoCoordinate class where the value of each field is not a number.
Public methodGeoCoordinate(Double, Double)Initializes a new instance of the GeoCoordinate class with the provided latitude and longitude.
Public methodGeoCoordinate(Double, Double, Double)Initializes a new instance of the GeoCoordinate class with the provided latitude, longitude, and altitude.
Public methodGeoCoordinate(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

  NameDescription
Public propertyAltitudeGets or sets the altitude of the GeoCoordinate in meters.
Public propertyCourseGets or sets the heading in degrees, relative to true north. GeoCoordinate.
Public propertyHorizontalAccuracyGets or sets the horizontal accuracy of the GeoCoordinate, in meters.
Public propertyIsUnknownGets a value indicating whether the GeoCoordinate contains any geographic coordinate data.
Public propertyLatitudeGets or sets the latitude of the GeoCoordinate.
Public propertyLongitudeGets or sets the longitude of the GeoCoordinate.
Public propertySpeedGets the speed of the GeoCoordinate in meters per second.
Public propertyVerticalAccuracyGets or sets the vertical accuracy of the GeoCoordinate, in meters.
Top

  NameDescription
Public methodEquals(GeoCoordinate)Determines whether the specified GeoCoordinate has the same latitude and longitude values as this one.
Public methodEquals(Object)Determines whether the specified object is a GeoCoordinate that has the same latitude and longitude values as this one. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before the Object is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDistanceToReturns the calculated distance, in meters, from the current GeoCoordinate to the provided GeoCoordinate.
Public methodGetHashCodeReturns a hash code for this instance. (Overrides Object.GetHashCode().)
Public methodGetTypeGets the Type of the current instance. (Inherited from Object.)
Protected methodMemberwiseCloneCreates a shallow copy of the current Object. (Inherited from Object.)
Public methodToStringReturns a string representation of the current GeoCoordinate. (Overrides Object.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two GeoCoordinate objects are equal.
Public operatorStatic memberInequalityDetermines whether two GeoCoordinate objects are not equal.
Top

  NameDescription
Public fieldStatic memberUnknownRepresents a GeoCoordinate that contains no data.
Top

Capabilities

If you use this API in your app, you must specify the following capabilities in the app manifest. Otherwise, your app might not work correctly or it might exit unexpectedly.

ID_CAP_NETWORKING

Windows Phone 8, Windows Phone OS 7.1

ID_CAP_LOCATION

Windows Phone 8

For more info, see App capabilities and hardware requirements for Windows Phone 8.

Windows Phone OS

Supported in: 8.1, 8.0, 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.

Show:
© 2014 Microsoft