GeoCoordinate Class

GeoCoordinate Class

.NET Framework (current version)
 

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

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

System::Object
  System.Device.Location::GeoCoordinate

public ref class GeoCoordinate : IEquatable<GeoCoordinate^>

NameDescription
System_CAPS_pubmethodGeoCoordinate()

Initializes a new instance of GeoCoordinate that has no data fields set.

System_CAPS_pubmethodGeoCoordinate(Double, Double)

Initializes a new instance of the GeoCoordinate class from latitude and longitude data.

System_CAPS_pubmethodGeoCoordinate(Double, Double, Double)

Initializes a new instance of the GeoCoordinate class from latitude, longitude, and altitude data.

System_CAPS_pubmethodGeoCoordinate(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.

NameDescription
System_CAPS_pubpropertyAltitude

Gets the altitude of the GeoCoordinate, in meters.

System_CAPS_pubpropertyCourse

Gets or sets the heading in degrees, relative to true north.

System_CAPS_pubpropertyHorizontalAccuracy

Gets or sets the accuracy of the latitude and longitude that is given by the GeoCoordinate, in meters.

System_CAPS_pubpropertyIsUnknown

Gets a value that indicates whether the GeoCoordinate does not contain latitude or longitude data.

System_CAPS_pubpropertyLatitude

Gets or sets the latitude of the GeoCoordinate.

System_CAPS_pubpropertyLongitude

Gets or sets the longitude of the GeoCoordinate.

System_CAPS_pubpropertySpeed

Gets or sets the speed in meters per second.

System_CAPS_pubpropertyVerticalAccuracy

Gets or sets the accuracy of the altitude given by the GeoCoordinate, in meters.

NameDescription
System_CAPS_pubmethodEquals(GeoCoordinate^)

Determines if the GeoCoordinate object is equivalent to the parameter, based solely on latitude and longitude.

System_CAPS_pubmethodEquals(Object^)

Determines if a specified GeoCoordinate is equal to the current GeoCoordinate, based solely on latitude and longitude.(Overrides Object::Equals(Object^).)

System_CAPS_protmethodFinalize()

Allows an object to try to free resources and perform other cleanup operations before it is reclaimed by garbage collection.(Inherited from Object.)

System_CAPS_pubmethodGetDistanceTo(GeoCoordinate^)

Returns the distance between the latitude and longitude coordinates that are specified by this GeoCoordinate and another specified GeoCoordinate.

System_CAPS_pubmethodGetHashCode()

Serves as a hash function for the GeoCoordinate.(Overrides Object::GetHashCode().)

System_CAPS_pubmethodGetType()

Gets the Type of the current instance.(Inherited from Object.)

System_CAPS_protmethodMemberwiseClone()

Creates a shallow copy of the current Object.(Inherited from Object.)

System_CAPS_pubmethodToString()

Returns a string that contains the latitude and longitude.(Overrides Object::ToString().)

NameDescription
System_CAPS_pubfieldSystem_CAPS_staticUnknown

Represents a GeoCoordinate object that has unknown latitude and longitude fields.

NameDescription
System_CAPS_puboperatorSystem_CAPS_staticEquality(GeoCoordinate^, GeoCoordinate^)

Determines whether two GeoCoordinate objects refer to the same location.

System_CAPS_puboperatorSystem_CAPS_staticInequality(GeoCoordinate^, GeoCoordinate^)

Determines whether two GeoCoordinate objects correspond to different locations.

.NET Framework
Available since 4.0
Windows Phone Silverlight
Available since 7.0

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

Return to top
Show:
© 2016 Microsoft