Geolocation
Collapse the table of content
Expand the table of content

geolocation object

Provides methods for obtaining the geographic location of the device running the application.

Members

The geolocation object has these types of members:

Methods

The geolocation object has these methods.

MethodDescription
clearWatch

Stops listening for updates to the current geographical location.

getCurrentPosition

Obtains the geographic position, in terms of latitude and longitude coordinates, of the device running a Windows Store app using JavaScript.

watchPosition

Begins listening for updates to the current geographical location of the device running the client.

 

Standards information

There are no standards that apply here.

Remarks

The geolocation object is only supported for webpages displayed in a Windows Store app using JavaScript. For more information, see Defining Document Compatibility.

The geolocation object is not supported for applications hosting the WebBrowser Control.

 

 

Show:
© 2017 Microsoft