getLastGPSPosition

fun getLastGPSPosition(notOlderThan: Long = 10000): BGPGpsPosition?

Returns the last recorded GPS position if it is recent enough.

Return

The last known BGPGpsPosition if it is within the specified time frame, otherwise null.

Parameters

notOlderThan

The maximum allowable age of the position in milliseconds (default is 10000ms).