Pattern Object
Pattern is sequence of stops used by trips on a specific direction and variant of a route. Most routes have only two patterns: one for outbound trips and one for inbound trips
Fields
#
alerts
By default, list of alerts which have directly an effect on just the pattern. It's also possible to return other relevant alerts through defining types.
canceledTrips
Get canceled trips for this pattern. Planned cancellations are not currently supported, so only real-time canceled trips are returned.
Avoid using this when fetching all patterns at once.
code
ID of the pattern. This is not always a stable ID that originates from the transit data. This can be generated by the system and it's not guaranteed to stay stable over time.
directionId
Direction of the pattern. Possible values: 0, 1 or -1. -1 indicates that the direction is irrelevant, i.e. the route has patterns only in one direction.
geometry
id
Global object ID provided by Relay. This value can be used to refetch this object using node query.
name
Name of the pattern. Pattern name can be just the name of the route or it can include details of destination and origin stops.
semanticHash
Hash code of the pattern. This value is stable and not dependent on the pattern id, i.e. this value can be used to check whether two patterns are the same, even if their ids have changed.
stops
List of stops in order in which they are visited by this pattern.
If a stop is visited more than once, it will appear several times.
tripsForDate
Trips which run on this pattern on the specified date
tripsOnServiceDate
Instances of TripOnServiceDates which run on the specified date. If no trips run on this date
then this returns an empty list.
vehiclePositions
Real-time updated position of vehicles that are serving this pattern.
Interfaces
#
Also implements Node .
Usages
#
References
#
- Part of union AlertEntity
- Field patterns from Alert
- Field pattern from CanceledTripsSummaryPattern
ParkingFilterOperation
PatternAlertType