RestrictionSection class Route

Represents a restricted portion of a route.

A RestrictionSection models a contiguous part of a route to which one or more RouteRestrictionType flags apply (for example a private road, a section that violates the vehicle's height/weight profile, or a stretch that conflicts with user avoid preferences).

Distances are measured in meters from the start of the route. The set of applicable restrictions is exposed as restrictions, a strongly-typed Set<RouteRestrictionType>.

Obtain restriction sections from a computed route via RouteBase.restrictionSections or from a specific segment via RouteSegmentBase.restrictionSections.

API users should not create instances of this class directly.

See also:

Constructors

RestrictionSection({int startDistanceM = 0, int endDistanceM = 0, Set<RouteRestrictionType>? restrictions})
Creates a RestrictionSection.

Properties

endDistanceM int
Distance (meters) from the route start where this restriction section ends.
getter/setter pair
hashCode int
The hash code for this object.
no setteroverride
restrictions Set<RouteRestrictionType>
The RouteRestrictionType values applied to this section.
getter/setter pair
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
startDistanceM int
Distance (meters) from the route start where this restriction section begins.
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 ==(covariant RestrictionSection other) bool
The equality operator.
override