Module Veery

getCurrentLocationAge(callback)

Available only for Android Platform

Get the age (in seconds) of the last known Location collected by Veery.

Parameters

callback function

Returns

long : age in seconds

If -1 : no location available yet

Usage / Example

Veery.getCurrentLocationAge(
 (age) => {
    console.log('getCurrentLocationAge--',age);
 }
)

User interaction

none

See also

For realtime refresh of the current location, use requestLocationUpdate.

You can use the function getCurrentLocation to get the last known geolocation.