PositionManager

class PositionManager : NativeMethodsReceiver

Types

OnMapMatchingMatched
Link copied to clipboard
interface OnMapMatchingMatched
OnMatchedGeometryProjected
Link copied to clipboard
interface OnMatchedGeometryProjected
OnMatchedRoadDetailLoaded
Link copied to clipboard
interface OnMatchedRoadDetailLoaded
PositionChangeListener
Link copied to clipboard
interface PositionChangeListener : NativeMethodsReceiver.NativeListener
Represents an interface for position update listeners.

Functions

addPositionChangeListener
Link copied to clipboard
fun addPositionChangeListener(listener: PositionManager.PositionChangeListener, executor: Executor? = null)
Adds a PositionChangeListener to the PositionManager .
callMethod
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
destroy
Link copied to clipboard
fun destroy()
getDetails
Link copied to clipboard
fun getDetails(matchedRoadIds: List<MatchedRoadId>, listener: PositionManager.OnMatchedRoadDetailLoaded, executor: Executor? = null)
Provides details for set of roads.
getListeners
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
match
Link copied to clipboard
fun match(positions: List<GeoCoordinates>, listener: PositionManager.OnMapMatchingMatched, executor: Executor? = null, precisions: List<Double> = emptyList(), timestamps: List<Long> = emptyList())
Map matching algorithm, tries to create continuous road sequence of roads representing provided polyline
projectMatchedGeometry
Link copied to clipboard
fun projectMatchedGeometry(positions: List<GeoCoordinates>, matchedRoadIds: List<MatchedRoadId>, tolerance: Int, listener: PositionManager.OnMatchedGeometryProjected, executor: Executor? = null)
Snap provided geometry to road sequence.
register
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> register(clazz: Class<T>, listener: T): Int
open fun <T : NativeMethodsReceiver.NativeListener> register(clazz: Class<T>, listener: T, @Nullable() executor: Executor?): Int
removePositionChangeListener
Link copied to clipboard
Removes a PositionChangeListener to the PositionManager .
setCustomPositionUpdater
Link copied to clipboard
fun setCustomPositionUpdater(customPositionUpdater: CustomPositionUpdater?)
Sets the custom position data source which can be used for custom position updates GPS location updates will be automatically disabled.
size
Link copied to clipboard
open fun size(): Int
startPositionUpdating
Link copied to clipboard
fun startPositionUpdating()
Starts location updates from device GPS
stopPositionUpdating
Link copied to clipboard
fun stopPositionUpdating()
Stops location updates from device GPS
unregister
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int

Properties

lastKnownPosition
Link copied to clipboard
val lastKnownPosition: GeoPosition
Returns the last known position.
mCustomPositionUpdater
Link copied to clipboard
var mCustomPositionUpdater: CustomPositionUpdater? = null