Magidoc

Route
Object

Route represents a public transportation service, usually from point A to point B and back, shown to customers under a single name, e.g. bus 550. Routes contain patterns (see field patterns ), which describe different variants of the route, e.g. outbound pattern from point A to point B and inbound pattern from point B to point A.

Fields

#

agency

Agency operating the route

alerts

[ Alert ]

List of alerts which have an effect on the route directly or indirectly. By default only alerts directly affecting this route are returned. It's also possible to return other relevant alerts through defining types.

bikesAllowed

color

The color (in hexadecimal format) the agency operating this route would prefer to use on UI elements (e.g. polylines on a map) related to this route. This value is not available for most routes.

desc

gtfsId

Non-null

ID of the route in format FeedId:RouteId

id

ID !
Non-null

Global object ID provided by Relay. This value can be used to refetch this object using node query.

longName

Long name of the route, e.g. Helsinki-Leppävaara

mode

Transport mode of this route, e.g. BUS

patterns

List of patterns which operate on this route

shortName

Short name of the route, usually a line number, e.g. 550

sortOrder

Orders the routes in a way which is useful for presentation to passengers. Routes with smaller values should be displayed first.

The value can be any non-negative integer. A null value means that no information was supplied.

This value is passed through from the source data without modification. If multiple feeds define sort orders for their routes, they may not be comparable to each other as no agreed scale exists.

Two routes may also have the same sort order and clients must decide based on other criteria what the actual order is.

stops

[ Stop ]

List of stops on this route

textColor

The color (in hexadecimal format) the agency operating this route would prefer to use when displaying text related to this route. This value is not available for most routes.

trips

[ Trip ]

List of trips which operate on this route

Interfaces

#

Also implements Node .

Usages

#

References

#