Entur Developer
Open
GraphQL

TripPattern

object

List of legs constituting a suggested sequence of rides and links for a specific trip.

Fields

startTime·DateTimedeprecated

Time that the trip departs.

endTime·DateTimedeprecated

Time that the trip arrives.

aimedStartTime·DateTime!

The aimed date and time the trip starts.

expectedStartTime·DateTime!

The expected, real-time adjusted date and time the trip starts.

aimedEndTime·DateTime!

The aimed date and time the trip ends.

expectedEndTime·DateTime!

The expected, real-time adjusted date and time the trip ends.

duration·Long

Duration of the trip, in seconds.

directDuration·Long

NOT IMPLEMENTED.

waitingTime·Long

How much time is spent waiting for transit to arrive, in seconds.

distance·Float

Total distance for the trip, in meters. NOT IMPLEMENTED

walkTime·Long

How much time is spent walking, in seconds.

streetDistance·Float

How far the user has to walk, bike and/or drive in meters. It includes all street (none transit) modes.

walkDistance·Floatdeprecated
legs·[Leg!]!

A list of legs. Each leg is either a walking (cycling, car) portion of the trip, or a ride leg on a particular vehicle. So a trip where the use walks to the Q train, transfers to the 6, then walks to their destination, has four legs.

systemNotices·[SystemNotice!]!

Get all system notices.

generalizedCost·Int

Generalized cost or weight of the itinerary. Used for debugging.

generalizedCost2·Int

A second cost or weight of the itinerary. Some use-cases like pass-through and transit-priority-groups use a second cost during routing. This is used for debugging.

waitTimeOptimizedCost·Int

A cost calculated to distribute wait-time and avoid very short transfers. This field is meant for debugging only.

transferPriorityCost·Int

A cost calculated to favor transfer with higher priority. This field is meant for debugging only.

A time and cost penalty applied to access and egress to favor regular scheduled transit over potentially faster options with FLEX, Car, bike and scooter.

Note! This field is meant for debugging only. The field can be removed without notice in the future.

emission·Emission

The total emission per person. The total emission is only available if all transit and car leg emissions can be calculated. If only a partial result is obtained, this will be null.

Did you find what you were looking for?