Magidoc

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

[ Alert ]

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.

code

Non-null

ID of the pattern

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

headsign

Vehicle headsign used by trips of this pattern

id

ID !
Non-null

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.

originalTripPattern

Original Trip pattern for changed patterns

patternGeometry

Coordinates of the route of this pattern in Google polyline encoded format

route

Non-null

The route this pattern runs on

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

[ Stop !]

List of stops served by this pattern

trips

[ Trip !]

Trips which run on this pattern

tripsForDate

[ Trip !]

Trips which run on this pattern on the specified date

vehiclePositions

Real-time updated position of vehicles that are serving this pattern.

Interfaces

#

Also implements Node .

Usages

#

References

#