Export (0) Print
Expand All

GeoCoordinate Class

Represents a geographical location that is determined by latitude and longitude coordinates. May also include altitude, accuracy, speed, and course information.

System.Object
  System.Device.Location.GeoCoordinate

Namespace:  System.Device.Location
Assembly:  System.Device (in System.Device.dll)

public class GeoCoordinate : IEquatable<GeoCoordinate>

The GeoCoordinate type exposes the following members.

  NameDescription
Public methodGeoCoordinate()Initializes a new instance of GeoCoordinate that has no data fields set.
Public methodGeoCoordinate(Double, Double)Initializes a new instance of the GeoCoordinate class from latitude and longitude data.
Public methodGeoCoordinate(Double, Double, Double)Initializes a new instance of the GeoCoordinate class from latitude, longitude, and altitude data.
Public methodGeoCoordinate(Double, Double, Double, Double, Double, Double, Double)Initializes a new instance of the GeoCoordinate class from latitude, longitude, altitude, horizontal accuracy, vertical accuracy, speed, and course.
Top

  NameDescription
Public propertyAltitudeGets the altitude of the GeoCoordinate, in meters.
Public propertyCourseGets or sets the heading in degrees, relative to true north.
Public propertyHorizontalAccuracyGets or sets the accuracy of the latitude and longitude that is given by the GeoCoordinate, in meters.
Public propertyIsUnknownGets a value that indicates whether the GeoCoordinate does not contain latitude or longitude data.
Public propertyLatitudeGets or sets the latitude of the GeoCoordinate.
Public propertyLongitudeGets or sets the longitude of the GeoCoordinate.
Public propertySpeedGets or sets the speed in meters per second.
Public propertyVerticalAccuracyGets or sets the accuracy of the altitude given by the GeoCoordinate, in meters.
Top

  NameDescription
Public methodEquals(GeoCoordinate)Determines if the GeoCoordinate object is equivalent to the parameter, based solely on latitude and longitude.
Public methodEquals(Object)Determines if a specified GeoCoordinate is equal to the current GeoCoordinate, based solely on latitude and longitude. (Overrides Object.Equals(Object).)
Protected methodFinalizeAllows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection. (Inherited from Object.)
Public methodGetDistanceToReturns the distance between the latitude and longitude coordinates that are specified by this GeoCoordinate and another specified GeoCoordinate.
Public methodGetHashCodeServes as a hash function for the GeoCoordinate. (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 that contains the latitude and longitude. (Overrides Object.ToString().)
Top

  NameDescription
Public operatorStatic memberEqualityDetermines whether two GeoCoordinate objects refer to the same location.
Public operatorStatic memberInequalityDetermines whether two GeoCoordinate objects correspond to different locations.
Top

  NameDescription
Public fieldStatic memberUnknownRepresents a GeoCoordinate object that has unknown latitude and longitude fields.
Top

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4

Supported in: Windows Phone 8.1

Supported in: Windows Phone Silverlight 8.1

Supported in: Windows Phone Silverlight 8

Windows Phone 8.1, Windows Phone 8, Windows 8.1, Windows Server 2012 R2, Windows 8, Windows Server 2012, Windows 7, Windows Vista SP2, Windows Server 2008 (Server Core Role not supported), Windows Server 2008 R2 (Server Core Role supported with SP1 or later; Itanium not supported)

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

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