ferrySections property
List<FerrySection>
get
ferrySections
A list of sections along the route on which the vehicle is carried over.
Each FerrySection describes the start/end distances (in meters from route start) and whether the vehicle is carried on a vessel or on a train shuttle.
Returns
- A
List<FerrySection>in route start to end order; empty when the route uses no ferry.
See also:
- FerryType - The way the vehicle is carried over a section.
- RoutePreferences.avoidFerries - Exclude ferries from route calculation.
- RouteSegmentBase.ferrySections - Ferry sections per segment.
Implementation
List<FerrySection> get ferrySections {
final OperationResult resultString = objectMethod(
pointerId,
'RouteBase',
'getFerrySections',
);
final List<dynamic> ferrySectionsJson = resultString['result'];
return ferrySectionsJson
.map((dynamic e) => FerrySection.fromJson(e))
.toList();
}