PTStopTime class Maps & 3D Scenes
Stop-time information for a single stop within a trip.
Contains local-time departure, delay and realtime availability flags. NOTE: departure times are returned as DateTime objects with UTC flag but encoded as local time; convert using TimezoneService when needed.
See also:
- PTTrip.stopTimes — The list of stop times for a trip.
- TimezoneService — For converting local times to different time zones.
Constructors
- PTStopTime.new({required String stopName, required Coordinates coordinates, required bool hasRealtime, required int delay, required DateTime? departureTime, required int stopDetails, required bool isBefore})
- Create a PTStopTime.
Properties
- coordinates ↔ Coordinates
-
WGS84 coordinates for this stop.
getter/setter pair
- delay ↔ int
-
Delay in seconds (may be zero).
getter/setter pair
- departureTime ↔ DateTime?
-
Optional departure time.
getter/setter pair
- hashCode → int
-
The hash code for this object.
no setterinherited
- hasRealtime ↔ bool
-
Whether realtime information is available.
getter/setter pair
- isBefore ↔ bool
-
True when this stop time is before the current time.
getter/setter pair
- isWheelchairFriendly → bool
-
True when wheelchair access is available for this stop.
no setter
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- stopName ↔ String
-
Stop display name.
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 ==(
Object other) → bool -
The equality operator.
inherited