SimulationParameters constructor

SimulationParameters(
  1. {DateTime? startTime,
  2. double speed = 10.0,
  3. double horizontalAccuracy = 0.0,
  4. double verticalAccuracy = 0.0}
)

Creates a SimulationParameters.

Parameters:

  • startTime — Date and time of the first location. Each subsequent location will increment its timestamp by one second.
  • speed — Rate of travel, in meters per second.
  • horizontalAccuracy — The horizontal accuracy to assign to generated locations.
  • verticalAccuracy — The vertical accuracy to assign to generated locations.

Implementation

factory SimulationParameters(
    {DateTime? startTime,
    double speed = 10.0,
    double horizontalAccuracy = 0.0,
    double verticalAccuracy = 0.0}) {
  _initializeArcGISEnvironmentIfNeeded();
  final coreStartTime = startTime?.toArcGIS();
  final handle = _withThrowingErrorHandler((errorHandler) {
    return runtimecore.RT_SimulationParameters_createCombined(
        coreStartTime?._handle ?? ffi.nullptr,
        speed,
        horizontalAccuracy,
        verticalAccuracy,
        errorHandler);
  });
  return SimulationParameters._withHandle(handle);
}