Entur Developer
Open
GraphQL

Line

object

A group of routes that the public knows by one name or number, for example a bus route. Regular lines and flexible lines both use this type.

Fields

groupOfLines·GroupOfLines

The group that this line belongs to. Null when the line has no group, which includes a line that refers to a network instead of a group.

branding·Branding

The branding of the line, or null when it has none.

presentation·Presentation

The colors of the line, or null when the source data has none.

id·ID!

The full NeTEx id of the line, including codespace and type.

name·String

The name of the line.

publicCode·String

The code that passengers see for the line, for example a route number.

description·String

A description of the line.

url·String

The web address of a page about the line.

transportMode·TransportMode

The transport mode of the line.

transportSubmode·TransportSubmode

The transport submode of the line.

quays·QuayConnection!(2 args)

The quays that the line serves. The order is stable between requests but does not follow the order of stops along the line.

Arguments
  • firstInt

    The maximum number of quays to return. The default is 20 and the largest allowed value is 1000. A value outside 1 to 1000 is clamped to that range.

  • afterString

    Return the quays after this cursor. Pass the endCursor of the previous page.

isReplacement·Boolean!

True when, on at least one date, a journey of this line replaces another journey.

replacementsExist·Boolean!

True when, on at least one date, a journey of this line is replaced by another journey.

authority·Authority

The authority that is responsible for the line. The line can refer to the authority directly, or the authority can come from the network of the line. A direct reference wins when both exist.

operator·Operator

The operator of the line, or null when the source data names none.

journeyPatterns·[JourneyPattern!]!

The journey patterns of the line. They are found through the routes of the line.

serviceJourneys·[ServiceJourney!]!

The service journeys of the line.

flexibleLineType·String

For a flexible line, the type of flexible service, as given in the source data. Null for other lines.

keyValues·[KeyValue!]!(1 arg)

The key-values of the line: the Key and Value pairs of its key list, in the order the source gave them. A key can repeat. Pass keys to return only the pairs whose key is in the list.

Arguments
  • The keys to return. Leave it out to return every pair.

notices·[Notice!]!

The notices that apply to this line.

The situations that name this line as a whole. A situation that names a stop or a journey of the line is not returned here, but on that call.

Did you find what you were looking for?