SimulationParameters constructor
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. Note that a low velocity increases the number of locations created. The default value is 10.0.horizontalAccuracy
— The horizontal accuracy to assign to generated locations. The default value is 0.0.verticalAccuracy
— The vertical accuracy to assign to generated locations. The default value is 0.0.
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);
}