OptimizationRouteStep class

The class encapsulating the data included in a Optimization Route's Step.

Includes the Optimization Route Step's type, location, arrival, duration, id, service, waitingTime, job and load.

Constructors

OptimizationRouteStep({required String type, required ORSCoordinate location, required int arrival, required int duration, int? id, int? service = 0, int? waitingTime, int? job, List<int>? load = const <int>[]})
const
OptimizationRouteStep.fromJson(Map<String, dynamic> json)
Generates OptimizationRouteStep from a Map received from API having the keys 'type', 'location', 'arrival', 'duration', 'id', 'service', 'waiting_time', 'job' and 'load'.
factory

Properties

arrival int
int describing the arrival time of this Optimized Route Step.
final
duration int
int describing the duration of this Optimized Route Step.
final
hashCode int
The hash code for this object.
no setteroverride
id int?
int describing the identifier of this Route Step.
final
job int?
int describing the job number of this Optimized Route Step.
final
load List<int>?
List of int describing multidimensional quantities of this OptimizationRouteStep's load.
final
location ORSCoordinate
ORSCoordinate of the Route Step's location.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
service int?
int describing the service duration of this job. Defaults to 0.
final
type String
Corresponds to possible VroomVehicleStepType values: 'start', 'job', 'pickup', 'delivery', 'break' and 'end' respectively.
final
waitingTime int?
int describing the waiting time for this Optimized Route Step.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson() Map<String, dynamic>
Returns a Map representation of the OptimizationRouteStep object. The keys of the Map are 'type', 'location', 'arrival', 'duration', 'id', 'service', 'waiting_time', 'job' and 'load'.
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
override