TruckOptions class - routing library - Dart API
TruckOptions
TruckOptions class
All the options to specify how a truck route should be calculated.
Constructors
Properties
- allowOptions ↔ AllowOptions
-
The options explicitly allowed by user for route calculations. By default
no options are opt in.
getter/setter pair
- avoidanceOptions ↔ AvoidanceOptions
-
Options to specify restrictions for route calculations. By default
no restrictions are applied.
getter/setter pair
-
avoidedTruckRoadTypes
↔ List<
TruckRoadType> -
Specifies a list of avoided truck road types for vehicle.
Refer to TruckRoadType for the available options.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setter
-
hazardousMaterials
↔ List<
HazardousMaterial> -
Specifies a list of hazardous materials shipped in the vehicle.
Refer to HazardousMaterial for the available options.
getter/setter pair
- lastCharacterOfLicensePlate ↔ String?
-
Specifies the last character of a vehicle's license plate, typically used to
evaluate traffic restrictions in certain environmental or low-emission zones.
In cities like Bogotá, Mexico City, or Jakarta, specific license plate digits may
be restricted on certain days or in certain areas to reduce congestion and emissions.
When this value is provided, the HERE SDK considers it during route calculation to
avoid roads or areas where your vehicle may be restricted based on local regulations.
Example usage: "7", when the license plate of a vehicle looks like "B-ET-182487".
getter/setter pair
- linkTunnelCategory ↔ TunnelCategory?
-
Specifies the tunnel categories to restrict certain route links.
The route will pass only through tunnels of a less strict category.
Refer to TunnelCategory for the available options.
getter/setter pair
-
maxSpeedOnSegments
↔ List<
MaxSpeedOnSegment> -
Segments with restriction on maximum DynamicSpeedInfo.baseSpeedInMetersPerSecond.
getter/setter pair
- occupantsNumber ↔ int
-
Specifies the number of occupants in the vehicle, including driver,
can affect the vehicle's ability to use HOV/carpool restricted lanes.
Shouldn't be less than 1 or greater than 255. Defaults to 1.
getter/setter pair
- routeOptions ↔ RouteOptions
-
Specifies the common route calculation options.
getter/setter pair
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- textOptions ↔ RouteTextOptions
-
Customize textual content returned from the route calculation, such
as localization, format, and unit system.
getter/setter pair
- tollOptions ↔ TollOptions
-
Options to specify how the tolls should be calculated,
such as transponders, vehicle category, and emission type.
getter/setter pair
- truckSpecifications ↔ TruckSpecifications
-
Detailed truck specifications such as dimensions and weight.
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.