Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Geocoordinate class

Applies to Windows and Windows Phone

Contains the information for identifying a geographic location.

Syntax


public sealed class Geocoordinate

Attributes

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

Members

The Geocoordinate class has these types of members:

Properties

The Geocoordinate class has these properties.

PropertyAccess typeDescription

Accuracy

Read-onlyThe accuracy of the location in meters.

Altitude

Read-onlyAltitude 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-onlyThe accuracy of the altitude, in meters.

Heading

Read-onlyThe current heading in degrees relative to true north.

Latitude

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

Longitude

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

Point

Read-onlyThe location of the Geocoordinate.

PositionSource

Read-onlyGets the source used to obtain a Geocoordinate.

PositionSourceTimestamp

Read-onlyGets the time at which the associated Geocoordinate position was calculated.

SatelliteData

Read-onlyGets information about the satellites used to obtain a Geocoordinate.

Speed

Read-onlyThe speed in meters per second.

Timestamp

Read-onlyThe 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

Minimum supported client

Windows 8 [Windows Store apps only]

Minimum supported server

None supported [Windows Store apps only]

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

Capabilities

location
ID_CAP_LOCATION [Windows Phone]

 

 

Show:
© 2014 Microsoft