forbiddenHazardousGoods property - ViolatedRestrictionDetails class - routing library - Dart API
forbiddenHazardousGoods
forbiddenHazardousGoods property
getter/setter pair
There are two lists for our trip: Hazardous goods restrictions applied during the trip, and the list used for the route calculation provided using TruckOptions.hazardousMaterials. This property is the intersection of the two lists.
Note RoadSignWarning events and RouteViolations are only given for violations that are
indicated on a road sign. Additional legal restrictions might apply when transporting hazardous materials.
Implementation
List<HazardousMaterial> forbiddenHazardousGoods;