Entur Developer
Open
GraphQL

line

query

A line, or null if there is none with this id. Flexible lines can be fetched here too.

Arguments

The full NeTEx id, for example XXX:Line:123.

Return Type

·Line
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.

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.

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?