Position Manager
Types
Link copied to clipboard
interface OnMapMatchingMatched
Link copied to clipboard
interface OnMatchedGeometryProjected
Link copied to clipboard
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
Provides details for set of roads.
Link copied to clipboard
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
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
Removes a PositionChangeListener to the PositionManager .
Link 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()
Link copied to clipboard
fun setTunnelPositionMode(mode: TunnelPositionMode, listener: SetTunnelPositionModeListener, executor: Executor? = null)
Set current tunnel position mode asynchronously.
Link copied to clipboard
Starts location updates from device GPS
Link copied to clipboard
Stops location updates from device GPS