Geocoordinate class

Geocoordinate class

Contains the information for identifying a geographic location.

Syntax


Public NotInheritable Class Geocoordinate

Members

The Geocoordinate class has these types of members:

Properties

The Geocoordinate class has these properties.

PropertyAccess typeDescription

Accuracy

Read-only

The accuracy of the location in meters.

Altitude

Read-only

Altitude may be altered or unavailable after Windows 8.1 and Windows Phone 8.1. Instead, use Geocoordinate.Point.The altitude of the location, in meters.

AltitudeAccuracy

Read-only

The accuracy of the altitude, in meters.

Heading

Read-only

The current heading in degrees relative to true north.

Latitude

Read-only

Latitude may be altered or unavailable after Windows 8.1 and Windows Phone 8.1. Instead, use Geocoordinate.Point. The latitude in degrees.

Longitude

Read-only

Longitude may be altered or unavailable after Windows 8.1 and Windows Phone 8.1. Instead, use Geocoordinate.Point.The longitude in degrees.

Point

Read-only

The location of the Geocoordinate.

PositionSource

Read-only

Gets the source used to obtain a Geocoordinate.

PositionSourceTimestamp

Read-only

Gets the time at which the associated Geocoordinate position was calculated.

SatelliteData

Read-only

Gets information about the satellites used to obtain a Geocoordinate.

Speed

Read-only

The speed in meters per second.

Timestamp

Read-only

The system time at which the location was determined.

 

Remarks

Retrieve an instance of this class using the Geoposition.Coordinate property.

Values for the Latitude, Longitude, and Accuracy properties are always provided. Values for the Altitude, AltitudeAccuracy, Heading, and Speed properties are provided if available. If they are not available, they will be null in JavaScript code.

Requirements (Windows 10 device family)

Device family

Universal, introduced version 10.0.10240.0

API contract

Windows.Foundation.UniversalApiContract, introduced version 1.0

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.Foundation.UniversalApiContract.winmd

Capabilities

location

Requirements (Windows 8.x and Windows Phone 8.x)

Minimum supported client

Windows 8 [Windows Store apps, desktop apps]

Minimum supported server

None supported

Minimum supported phone

Windows Phone 8

Namespace

Windows.Devices.Geolocation
Windows::Devices::Geolocation [C++]

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

Attributes

[DualApiPartition()]
[MarshalingBehavior(Agile)]
[Version(0x06020000)]

 

 

Show:
© 2016 Microsoft