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
#
alerts
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
id
Global object ID provided by Relay. This value can be used to refetch this object using node query.
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.
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.
type
The raw GTFS route type as a integer. For the list of possible values, see: https://developers.google.com/transit/gtfs/reference/#routestxt and https://developers.google.com/transit/gtfs/reference/extended-route-types
url
Interfaces
#
Also implements Node .
Usages
#
References
#
- Part of union AlertEntity
- Field routes from Agency
- Field route from Alert
RiderCategory
RouteAlertType