FerrySection class Route
Represents a portion of a route on which the vehicle is carried over.
A FerrySection covers a contiguous stretch of the route where the vehicle does not drive itself but is transported, either on a vessel or on a train shuttle (see FerryType).
Distances are measured in meters from the start of the route. Sections are ordered from route start to route end.
Obtain ferry sections from a computed route via RouteBase.ferrySections or from a specific segment via RouteSegmentBase.ferrySections.
API users should not create instances of this class directly.
See also:
- RouteBase.ferrySections - Retrieve ferry sections for a route.
- RouteSegmentBase.ferrySections - Retrieve ferry sections for a segment.
- FerryType - The way the vehicle is carried over a section.
- RoutePreferences.avoidFerries - Exclude ferries from route calculation.
Constructors
- FerrySection({required int startDistanceM, required int endDistanceM, required FerryType type})
- Creates a FerrySection.
Properties
- endDistanceM ↔ int
-
Distance (meters) from the route start where this ferry section ends.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setteroverride
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- startDistanceM ↔ int
-
Distance (meters) from the route start where this ferry section begins.
getter/setter pair
- type ↔ FerryType
-
The way the vehicle is carried over this section.
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 FerrySection other) → bool -
The equality operator.
override