LocationFromRoute

class LocationFromRoute(route: Route, speedFactor: Int) : LocationDataSource

A class that defines the interface for getting locations from a computed Route. This is useful for simulation or demo mode.

Constructors

Link copied to clipboard
constructor(route: Route, speedFactor: Int)

Properties

Link copied to clipboard

Functions

Link copied to clipboard
open override fun dispose()

Call this method if you want to dispose immediately all underlying native resources

Link copied to clipboard
Link copied to clipboard

Returns the list of the required android permission(s) for this Location Data Source

Link copied to clipboard
open override fun isFeatureEnabled(): Boolean

Specifies whether the Location Data Source is enabled.

Link copied to clipboard
open override fun lastKnownLocation(): Location?

Returns the last known location update.

Link copied to clipboard
open override fun start(): Boolean

Starts location updates from the beginning of the Route.

Link copied to clipboard
open override fun stop()

Stops location updates from the Route.