Position Manager
Types
On Map Matching Matched
Link copied to clipboard
interface OnMapMatchingMatched
Content copied to clipboard
On Matched Geometry Projected
Link copied to clipboard
interface OnMatchedGeometryProjected
Content copied to clipboard
Position Change Listener
Link copied to clipboard
Represents an interface for position update listeners.
Functions
add Position Change Listener
Link copied to clipboard
fun addPositionChangeListener(listener: PositionManager.PositionChangeListener, executor: Executor? = null)
Content copied to clipboard
Adds a PositionChangeListener to the PositionManager .
call Method
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
Content copied to clipboard
destroy
Link copied to clipboard
get Listeners
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
Content copied to clipboard
match
Link copied to clipboard
fun match(positions: List<GeoCoordinates>, listener: PositionManager.OnMapMatchingMatched, executor: Executor? = null, precisions: List<Double> = emptyList(), timestamps: List<Long> = emptyList())
Content copied to clipboard
Map matching algorithm, tries to create continuous road sequence of roads representing provided polyline
project Matched Geometry
Link copied to clipboard
fun projectMatchedGeometry(positions: List<GeoCoordinates>, matchedRoadIds: List<RoadId>, tolerance: Int, listener: PositionManager.OnMatchedGeometryProjected, executor: Executor? = null)
Content copied to clipboard
Snap provided geometry to road sequence.
register
Link copied to clipboard
remove Position Change Listener
Link copied to clipboard
fun removePositionChangeListener(listener: PositionManager.PositionChangeListener)
Content copied to clipboard
Removes a PositionChangeListener to the PositionManager .
set Custom Position Updater
Link copied to clipboard
fun setCustomPositionUpdater(customPositionUpdater: CustomPositionUpdater?)
Content copied to clipboard
Sets the custom position data source which can be used for custom position updates GPS location updates will be automatically disabled. To enable call startPositionUpdating()
start Position Updating
Link copied to clipboard
fun startPositionUpdating()
Content copied to clipboard
Starts location updates from device GPS
stop Position Updating
Link copied to clipboard
fun stopPositionUpdating()
Content copied to clipboard
Stops location updates from device GPS
unregister
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int
Content copied to clipboard