Files
NativeScript/apps/tests/location.md
2016-04-14 15:20:35 +03:00

900 B

nav-title, title, description
nav-title title description
location How-To How-To Examples for using location

Location

Using the location requires the Location module.

Other functions

Test are location services available for this device

Get distance between two locations

Getting location

Receive continuous location updates

Get last known location

Get location once

if there is options.timeout you will receive error on timeout. If options.timeout is 0 then the result is the same as the result from LocationManager.lastKnownLocation and there will be no wait. You can use options.maximumAge to specify you don't want to receive locations older than specified time in ms.