Entur Developer
Open
GraphQL

lines

query

Lines (regular and flexible), one page at a time, optionally filtered. Filters combine with AND, and a list filter matches any of its values. The order is stable between requests but carries no meaning.

Arguments

Only lines with one of these full NeTEx ids.

name·String

Only lines whose name contains this text. The match ignores case.

publicCode·String

Only lines with exactly this public code.

publicCodes·[String]!

Only lines whose public code is one of these.

transportModes·[String]!

Only lines with one of these transport modes, for example bus. See the TransportMode enum for the values.

flexibleOnly·Boolean

When true, return only flexible lines. When false or omitted, return regular and flexible lines.

authorities·[String]!

Only lines that belong to one of these authorities, given as full NeTEx ids. A line belongs to an authority through its network.

first·Int

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

after·String

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

Return Type

·LineConnection!

The lines of this page, each with its cursor.

nodes·[Line!]!

The lines of this page, without cursors.

pageInfo·PageInfo!

Information about this page and the next one.

Did you find what you were looking for?