LocationMapper
object LocationMapper
Provides a mapping between Android's Location and GeoLocation.
Note: The laneDriven
extra is adjusted during conversion so the GeoLocation lane index is 0 based, which is the TomTom standard, and the Location lane index is 1 based, which is the DMV standard as used in TTP positioning logs, for example. This is required for lane level navigation to work correctly.
Functions
Link copied to clipboard
Converts the Android's Location into the GeoLocation object.
Link copied to clipboard
Converts the GeoLocation object into the Android's Location. SystemClock.elapsedRealtimeNanos can be compared with Location.getElapsedRealtimeNanos.