Warning, /libraries/kpublictransport/src/lib/backends/otp/otp2/journey.graphql is written in an unsupported language. File is not indexed.

0001 # SPDX-FileCopyrightText: 2020-2021 Volker Krause <vkrause@kde.org>
0002 # SPDX-License-Identifier: CC0-1.0
0003 
0004 query journeys(
0005   $fromLat: Float!,
0006   $fromLon: Float!,
0007   $toLat: Float!,
0008   $toLon: Float!,
0009   $date: String!,
0010   $time: String!,
0011   $arriveBy: Boolean!,
0012   $modes: [TransportMode]!,
0013   $maxResults: Int!,
0014   $lang: String!,
0015   $withPaths: Boolean!,
0016   $withIntermediateStops: Boolean!
0017 ) {
0018   plan (
0019         from: { lat: $fromLat, lon: $fromLon }
0020         to:   { lat: $toLat,   lon: $toLon }
0021         date: $date
0022         time: $time
0023         arriveBy: $arriveBy
0024         numItineraries: $maxResults
0025         transportModes: $modes
0026         locale: $lang
0027     ) {
0028         itineraries {
0029             legs {
0030                 startTime
0031                 endTime
0032                 departureDelay
0033                 arrivalDelay
0034                 realTime
0035                 distance
0036                 mode
0037                 transitLeg
0038                 rentedBike
0039                 from { ...locationFragment }
0040                 to { ...locationFragment }
0041                 trip {
0042                     route {
0043                         type
0044                         desc
0045                         shortName
0046                         longName
0047                         color
0048                         textColor
0049                         #bikesAllowed
0050                         alerts {
0051                             alertHeaderTextTranslations {
0052                                 language
0053                                 text
0054                             }
0055                             alertDescriptionTextTranslations {
0056                                 language
0057                                 text
0058                             }
0059                             alertEffect
0060                             alertCause
0061                             alertSeverityLevel
0062                         }
0063                     }
0064                     tripHeadsign
0065                     tripShortName
0066                 }
0067                 intermediateStops: intermediatePlaces @include(if: $withIntermediateStops) {
0068                     stop {
0069                         id: gtfsId
0070                         name
0071                         lat
0072                         lon
0073                         platformCode
0074                     }
0075                     scheduledArrivalTime: arrivalTime
0076                     scheduledDepartureTime: departureTime
0077                 }
0078                 legGeometry @include(if: $withPaths) {
0079                     length
0080                     points
0081                 }
0082             }
0083         }
0084         prevDateTime
0085         nextDateTime
0086         searchWindowUsed
0087     }
0088 }
0089 
0090 fragment locationFragment on Place {
0091     name
0092     lat
0093     lon
0094     stop {
0095         id: gtfsId
0096         platformCode
0097     }
0098     bikeRentalStation {
0099         id
0100         stationId,
0101         networks,
0102         bikesAvailable
0103     }
0104 }