Geocoordinate class

2 out of 10 rated this helpful - Rate this topic

Contains latitude and longitude data for a geographic location.

Syntax


var geocoordinate = Geoposition.Coordinate;

Attributes

MarshalingBehaviorAttribute(Agile)
VersionAttribute(NTDDI_WIN8)

Members

The Geocoordinate class has these types of members:

Methods

The Geocoordinate class inherits methods from the Object class (C#/VB/C++).

Properties

The Geocoordinate class has these properties.

PropertyAccess typeDescription

Accuracy

Read-onlyThe accuracy of the location in meters.

Altitude

Read-onlyThe 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-onlyThe latitude in degrees.

Longitude

Read-onlyThe longitude in degrees.

PositionSource

Read-onlyWindows Phone only. Gets the source used to obtain a Geocoordinate.

SatelliteData

Read-onlyWindows Phone only. Gets information about the satellites used to obtain a Geocoordinate.

Speed

Read-onlyThe speed in meters per second.

Timestamp

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

Windows Server 2012 [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]

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.