MasstransitSection class abstract final

Contains information about an individual section of a mass transit MasstransitRoute. The only fields that are always set are MasstransitSection.metadata.MasstransitSectionMetadata.weight, MasstransitSection.geometry and MasstransitSection.metadata.MasstransitSectionMetadata.data.

Implemented types

Constructors

MasstransitSection(MasstransitSectionMetadata metadata, Subpolyline geometry, List<MasstransitRouteStop> stops, List<Subpolyline> rideLegs)
factory

Properties

geometry Subpolyline
Geometry of the section as a fragment of a MasstransitRoute polyline.
no setter
hashCode int
The hash code for this object.
no setteroverride
metadata MasstransitSectionMetadata
General information about a section of a route.
no setter
rideLegs List<Subpolyline>
Vector of polylines each connecting two consecutive stops. This vector is only filled for mass transit ride sections, so this geometry represents a part of the mass transit thread geometry between two stops.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
stops List<MasstransitRouteStop>
Vector of stops along the route. The first stop in the vector is the stop for boarding the transport, and the last stop in the vector is the stop for exiting the transport.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(covariant MasstransitSection other) bool
The equality operator.
override