transportSpecification property
getter/setter pair
Defines the transport specification which contains the transport mode and the vehicle specifications for the transport mode chosen. Notes:
- The transport mode TransportMode.publicTransit is not supported.
- By default all vehicle specifications from RoutingOptions.transportSpecification are set to
nulland the TransportSpecification.transportMode from RoutingOptions.transportSpecification is set to TransportMode.car. - A route can be calculated with only the TransportSpecification.transportMode from RoutingOptions.transportSpecification set.
- It is highly recommended to define the TruckCategory that is being used in VehicleSpecification.truckCategory from TransportSpecification.vehicleSpecification from RoutingOptions.transportSpecification, if the TransportSpecification.transportMode from RoutingOptions.transportSpecification is set to TransportMode.truck.
- The VehicleSpecification.occupancy from TransportSpecification.vehicleSpecification won't have effect if HOV and/or HOT lane usage is not allowed using EVTruckOptions.allowOptions.
- The PedestrianSpecification.walkingSpeedInMetersPerSecond from TransportSpecification.pedestrianSpecification if present, will be used by the service as the walking speed for pedestrian routing. It influences the duration of walking along the route. The provided value must be in the range [0.5, 2.0]. When the value is outside this range, an invalid parameter error is raised. Refer to RoutingError for details. The default speed is 1 meter per second.
Implementation
TransportSpecification transportSpecification;