Properties

This section describes the properties associated with the Geolocation API.

In this section

TopicDescription

accuracy

Gets the accuracy of the latitude and longitude properties, in meters.

altitude

Specifies the altitude, in meters, of the coordinates object.

altitudeAccuracy

Accuracy of the altitude property, in meters.

code

Returns an integer value that indicates the type of error that occurred while trying to retrieve geographic information.

coords

Gets a reference to a coordinates object that contains geographic information returned by the getCurrentPosition or watchPosition functions.

geolocation

Gets a reference to a geolocation object, which reports the geographic location of the device running the application.

heading

Specifies a direction of travel, in degrees.

latitude

The latitude of the location specified in the coordinates object, in decimal degrees.

longitude

The longitude of the location specified in the coordinates object in decimal degrees.

message

Gets an error message for debugging purposes.

speed

Current ground speed of the device running a Windows Store app using JavaScript, specified in meters per second.

timestamp

Gets the time associated with the geographic information, typically the time the information was received by a Windows Store app using JavaScript.

 

 

 

Show:
© 2014 Microsoft. All rights reserved.