SimulatedLocationDataSource

constructor()

Creates a simulated location data source.

Since

200.1.0


constructor(locations: Iterable<Location>)

Creates a simulated location data source with the specified locations.

Since

200.1.0

Parameters

locations

list of locations to use in simulation


constructor(polyline: Polyline, parameters: SimulationParameters? = null)

Creates a simulated location data source which derives its collection of locations along an input polyline, optionally based on simulation parameters.

The generated locations are available from the SimulatedLocationDataSource.locations property. Distance between each location on the polyline is determined by the value of SimulationParameters.velocity, if provided. If velocity is 10 meters per second, for example, the distance between locations will be 10 meters. The Location.timestamp values will always be 1 second apart. These location properties will be set based on the inputs: Location.timestamp, Location.position, Location.velocity, Location.horizontalAccuracy, Location.verticalAccuracy The Location.course property will be calculated based on the inputs and the Location.lastKnown property will not be set.

Since

200.1.0

Parameters

polyline

A polyline that defines a simulated travel path.

parameters

Optional parameters to control how locations are created from the polyline.