SimulationParameters

Parameters to control how locations are created from a simulated route of travel (Polyline). This can be provided as an input to the SimulatedLocationDataSource.setLocationsWithPolyline(Polyline, SimulationParameters) method to specify the start time for the first location, travel velocity (meters per second), and horizontal and vertical accuracy of locations.

Since

200.1.0

Constructors

Link copied to clipboard
constructor(startTime: Instant = Instant.now(), velocity: Double = 10.0, horizontalAccuracy: Double = 0.0, verticalAccuracy: Double = 0.0)

Creates a SimulationParameters.

Properties

Link copied to clipboard

The horizontal accuracy to assign to generated locations. The default value is 0.0.

Link copied to clipboard

Date and time of the first location. Each subsequent location will increment its timestamp by one second.

Link copied to clipboard

Rate of travel, in meters per second. The default value is 10.0. Note that very small values for velocity may greatly increase the number of locations created.

Link copied to clipboard

The vertical accuracy to assign to generated locations. The default value is 0.0.