LocationSimulatorOptions class
Options to specify how the location simulator will behave.
Constructors
Properties
- calculateBearingWhenMissing ↔ bool
-
When enabled and bearing is not present in a GPX track point, it is calculated from the
coordinates of adjacent track points. When disabled, the bearing remains unset (null).
Note: Even when disabled, the last known bearing is preserved for stationary points
to avoid null-bearing glitches in the map matcher.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
- notificationInterval ↔ Duration
-
Interval between notifications.
Defaults to 1 second.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- speedFactor ↔ double
-
A factor to scale the speed.
Useful to speed up (or down) the simulation.
By default, the speed factor is 1.0, which is equal to the speed that one normally drives along
each route segment without taking into account any traffic-related constraints.
The default speed may vary based on the road geometry, road condition and other statistical
data.
Values above 1.0 will increase the speed, values below 1.0 will reduce the speed.
For example, a value of 2.0 will double the speed.
getter/setter pair
- useDefaultSpeedWhenMissing ↔ bool
-
When enabled, the default speed from GPXOptions is used for GPX track
points that do not contain a speed value. When disabled, the speed remains unset (null).
getter/setter pair
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool - The equality operator.