Entur Developer
Open
GraphQL

lines

query

Get all lines

Arguments

ids·[ID]

Set of ids of lines to fetch. If this is set, no other filters can be set.

name·String

Prefix of the name of the line to fetch. This filter is case insensitive.

publicCode·String

Public code of the line to fetch.

publicCodes·[String]

Set of public codes to fetch lines for.

transportModes·[TransportMode]

Set of transport modes to fetch lines for.

authorities·[String]

Set of ids of authorities to fetch lines for.

flexibleOnly·Boolean= false

Filter by lines containing flexible / on demand service journey only.

Return Type

·[Line!]
id·ID!
authority·Authority
operator·Operator
branding·Branding
publicCode·String

Publicly announced code for line, differentiating it from other lines for the same operator.

name·String
transportMode·TransportMode
transportSubmode·TransportSubmode
description·String
url·String
presentation·Presentation
bikesAllowed·BikesAllowed
journeyPatterns·[JourneyPattern]
quays·[Quay!]
serviceJourneys·[ServiceJourney!]
notices·[Notice!]!

Get all situations active for the line.

flexibleLineType·String

Type of flexible line, or null if line is not flexible.

bookingArrangements·BookingArrangementdeprecated

Booking arrangements for flexible line.

groupOfLines·[GroupOfLines!]

Groups of lines that line is a part of.

isReplacement·Boolean!

Is this a replacement Line? In NeTEx/SIRI-sourced data this can be set by either a replacement submode, or a replacement link in a DatedServiceJourney. Only true for GTFS-sourced data if set by the extended GTFS type.

replacementsExist·Boolean!

Are there replacement DatedServiceJourneys for this Line?

Did you find what you were looking for?