PositionManager

Types

Link copied to clipboard
interface OnMapMatchingMatched
Link copied to clipboard
interface OnMatchedGeometryProjected
Link copied to clipboard
interface PositionChangeListener : NativeMethodsReceiver.NativeListener

Represents an interface for position update listeners.

Functions

Link copied to clipboard
fun addPositionChangeListener(listener: PositionManager.PositionChangeListener, executor: Executor? = null)

Adds a PositionChangeListener to the PositionManager .

Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> callMethod(clazz: Class<T>, callback: NativeMethodsReceiver.NativeCallback<T>)
Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> getListeners(clazz: Class<T>): MutableMap<T, Executor>
Link copied to clipboard
fun getRoads(    roadIds: List<RoadId>,     listener: RoadsListener,     executor: Executor? = null)

Provides details for set of roads.

Link copied to clipboard
fun getTunnelPositionMode(listener: GetTunnelPositionModeListener, executor: Executor? = null)

Provides current tunnel position mode asynchronously.

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

Link copied to clipboard
open override fun onContextDestroy()
Link copied to clipboard
fun projectMatchedGeometry(    positions: List<GeoCoordinates>,     matchedRoadIds: List<RoadId>,     tolerance: Int,     listener: PositionManager.OnMatchedGeometryProjected,     executor: Executor? = null)

Snap provided geometry to road sequence.

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
Link copied to clipboard

Removes a PositionChangeListener to the PositionManager .

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. To enable call startPositionUpdating()

Link copied to clipboard
fun setTunnelPositionMode(    mode: TunnelPositionMode,     listener: SetTunnelPositionModeListener,     executor: Executor? = null)

Set current tunnel position mode asynchronously.

Link copied to clipboard
open fun size(): Int
Link copied to clipboard
fun startPositionUpdating()

Starts location updates from device GPS

Link copied to clipboard
fun stopPositionUpdating()

Stops location updates from device GPS

Link copied to clipboard
open fun <T : NativeMethodsReceiver.NativeListener> unregister(clazz: Class<T>, listener: T): Int

Properties

Link copied to clipboard
val lastKnownPosition: GeoPosition

Returns the last known position.

Link copied to clipboard
var mCustomPositionUpdater: CustomPositionUpdater? = null