PTRouteSegment class Route

Public transport route segment.

A contiguous portion of a public-transport route with the same means of transport.

Segments expose transit-specific metadata such as platform codes, agency information, schedule times and accessibility flags. Use PTRouteSegment when inspecting a PTRoute's segments for trip details.

See also:

Inheritance

Constructors

PTRouteSegment(int pointerId)

Properties

agencyFareUrl → String
URL where fares or tickets can be purchased for this operator.
no setter
agencyName → String
Name of the transit agency operating this segment.
no setter
agencyPhone → String
Contact phone number for the agency operating this segment.
no setter
agencyUrl → String
Agency website URL for fare and operator information.
no setter
arrivalDelayInSeconds → int
Arrival delay for the segment, in seconds.
no setter
arrivalTime → DateTime?
Scheduled arrival time for this segment in UTC.
no setter
countAlerts → int
Get count of alerts in the route segment.
no setter
countrySections → List<CountrySection>
The countries this segment runs through.
no setterinherited
departureDelayInSeconds → int
Departure delay for the segment, in seconds.
no setter
departureTime → DateTime?
Scheduled departure time for this segment in UTC.
no setter
ferrySections → List<FerrySection>
Sections contained in this segment on which the vehicle is carried over.
no setterinherited
geographicArea → RectangleGeographicArea
Geographic bounding rectangle that encloses this segment.
no setterinherited
hasBicycleSupport → bool
Whether bicycles are supported on this segment.
no setter
hashCode → int
The hash code for this object.
no setterinherited
hasRegisteredAutoReleaseObject ↔ bool
getter/setter pairinherited
hasWheelchairSupport → bool
Whether this segment supports wheelchair accessibility.
no setter
incursCosts → bool
Whether traveling this segment may incur monetary costs (for example tolls).
no setterinherited
instructions → List<RouteInstruction>
Turn-by-turn instructions for this segment.
no setterinherited
isCommon → bool
Whether this segment is of the same travel mode as the parent route.
no setterinherited
isSignificant → bool
Is this a significant route segment.
no setter
isStationWalk → bool
Is this a station-walk segment.
no setter
lineBlockID → int
Line block ID of the route segment.
no setter
lineColor → Color
Line color of the route segment (used for UI badges).
no setter
lineFrom → String
Origin stop/station name for the transit line in this segment.
no setter
lineTextColor → Color
Get line text color of the route segment.
no setter
lineTowards → String
Destination stop/station name for the transit line in this segment.
no setter
name → String
Segment display name.
no setter
platformCode → String
Platform code for boarding/alighting at the stop associated with this segment.
no setter
pointerId → int
The pointer ID of the native object
no setterinherited
realtimeStatus → RealtimeStatus
Real-time status for this segment (delay, on time, not available).
no setter
restrictionSections → List<RestrictionSection>
Restricted sections contained in this segment.
no setterinherited
routeUrl → String
URL with more information about this route segment or trip.
no setter
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shortName → String
Short display name (e.g., route short name or number).
no setter
stayOnSameTransit → bool
Whether passengers must remain on the same vehicle for this segment.
no setter
summary → String
Short textual summary of the segment (distance/time snippet).
no setterinherited
timeDistance → TimeDistance
Duration and distance metrics for this segment.
no setterinherited
tollSections → List<TollSection>
Tolled sections contained in this segment.
no setterinherited
transitType → TransitType
Transit type for this segment.
no setter
waypoints → List<Landmark>
List containing the segment's start, end and any intermediate waypoints.
no setterinherited

Methods

dispose() → void
Disposes the native object.
inherited
getAlert(int index) → PTAlert?
Get alert by index.
noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
registerAutoReleaseObject(int pointerId) → void
Registers an object for auto release.
inherited
toString() → String
A string representation of this object.
inherited

Operators

operator ==(Object other) → bool
The equality operator.
inherited