TravelModeOptions class

Las características del vehículo, que cambian la ruta.

El caso que más se nota es el camión: sus dimensiones y su peso hacen que una ruta correcta para un coche sea imposible. Un puente con gálibo de 3,5 m no aparece como cortado en el mapa — simplemente el camión no cabe.

Annotations
  • @immutable

Constructors

TravelModeOptions.car({String? engineType, int? occupancy, String? licensePlateLastCharacter})
Opciones de coche.
const
TravelModeOptions.scooter({String? engineType, String? licensePlateLastCharacter})
Opciones de moto.
const
TravelModeOptions.truck({int? grossWeightKg, int? heightCm, int? lengthCm, int? widthCm, int? axleCount, int? trailerCount, List<String> hazardousCargos = const <String>[], String? tunnelRestrictionCode, String? truckType, String? engineType, int? occupancy, String? licensePlateLastCharacter})
Opciones de camión.
const

Properties

axleCount int?
Número de ejes. Determina la tarifa de peaje.
final
engineType String?
Motorización: Electric, Diesel, Gasoline. Cambia las zonas de bajas emisiones en las que se puede entrar.
final
grossWeightKg int?
Peso bruto en kilogramos.
final
hashCode int
The hash code for this object.
no setterinherited
hazardousCargos List<String>
Mercancías peligrosas: Explosive, Gas, Flammable, Combustible, Organic, Poison, Radioactive, Corrosive, PoisonousInhalation, HarmfulToWater, Other.
final
heightCm int?
Altura en centímetros. La que decide si cabe bajo un puente.
final
lengthCm int?
Longitud en centímetros.
final
licensePlateLastCharacter String?
Última cifra de la matrícula.
final
occupancy int?
Ocupantes. Da acceso a los carriles de alta ocupación.
final
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
trailerCount int?
Número de remolques.
final
truckType String?
Clase de camión: StraightTruck, Tractor, Trailer.
final
tunnelRestrictionCode String?
Código de restricción de túneles, de B a E.
final
widthCm int?
Anchura en centímetros.
final

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toJson(TravelMode travelMode) Map<String, dynamic>
Las opciones en la forma que espera el servicio para travelMode.
toString() String
A string representation of this object.
inherited

Operators

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