SimulatedLocationDataSource.withPolylineAndSimulationParameters constructor

SimulatedLocationDataSource.withPolylineAndSimulationParameters(
  1. Polyline polyline, {
  2. SimulationParameters? parameters,
})

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

Parameters:

  • polyline — A polyline that defines a simulated travel path.
  • parameters — Parameters to control how locations are created.