PTRouteInfo class Maps & 3D Scenes

Public-facing route information for a stop.

Contains rider-visible route metadata such as short/long names, route type and color hints. Use this when presenting routes associated with a stop in UI or lists.

Instances are provided as part of PTStop.routes or PTTrip.route.

Also see:

  • PTStop.routes — The routes serving a specific stop.
  • PTTrip.route — The route associated with a specific trip.
  • PTRoute - Route computed between two locations. Do not confuse with this class which provides metadata about public transport routes associated with stops.

Constructors

PTRouteInfo({required int routeId, String? routeShortName, String? routeLongName, required PTRouteType routeType, Color? routeColor, Color? routeTextColor, String? heading, PTCrowdingInfo? liveCrowding, PTShape? shape})
Create a PTRouteInfo.

Properties

hashCode → int
The hash code for this object.
no setterinherited
heading → String?
Optional heading or destination string.
final
liveCrowding → PTCrowdingInfo?
Live crowding summary for the route (may be null).
final
routeColor → Color?
Optional color associated with the route.
final
routeId → int
Internal route identifier.
final
routeLongName → String?
Descriptive route name (may be null).
final
routeShortName → String?
Short route identifier (may be null).
final
routeTextColor → Color?
Optional text color suitable for use on top of routeColor.
final
routeType → PTRouteType
Route type.
final
runtimeType → Type
A representation of the runtime type of the object.
no setterinherited
shape → PTShape?
Drawable geometry of the route (may be null).
final

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