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

0001 # SPDX-FileCopyrightText: 2020 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 ) {
0016   plan (
0017         from: { lat: $fromLat, lon: $fromLon }
0018         to:   { lat: $toLat,   lon: $toLon }
0019         date: $date
0020         time: $time
0021         arriveBy: $arriveBy
0022         numItineraries: $maxResults
0023         transportModes: $modes
0024         locale: $lang
0025     ) {
0026         itineraries {
0027             legs {
0028                 startTime
0029                 endTime
0030                 departureDelay
0031                 arrivalDelay
0032                 realTime
0033                 distance
0034                 mode
0035                 transitLeg
0036                 from {
0037                     name
0038                     lat
0039                     lon
0040                     stop {
0041                         id: gtfsId
0042                         platformCode
0043                         timezone
0044                     }
0045                     bikeRentalStation {
0046                         id
0047                         networks,
0048                         bikesAvailable,
0049                         spacesAvailable
0050                     }
0051                 }
0052                 to {
0053                     name
0054                     lat
0055                     lon
0056                     stop {
0057                         id: gtfsId
0058                         platformCode
0059                         timezone
0060                     }
0061                     bikeRentalStation {
0062                         id
0063                         stationId,
0064                         networks,
0065                         bikesAvailable
0066                     }
0067                 }
0068                 trip {
0069                     route {
0070                         type
0071                         desc
0072                         shortName
0073                         longName
0074                         color
0075                         textColor
0076                         #bikesAllowed
0077                         alerts {
0078                             alertHeaderTextTranslations {
0079                                 language
0080                                 text
0081                             }
0082                             alertDescriptionTextTranslations {
0083                                 language
0084                                 text
0085                             }
0086                             alertEffect
0087                             alertCause
0088                             alertSeverityLevel
0089                         }
0090                     }
0091                     tripHeadsign
0092                     tripShortName
0093                 }
0094                 intermediateStops: intermediatePlaces {
0095                     stop {
0096                         id: gtfsId
0097                         name
0098                         lat
0099                         lon
0100                         platformCode
0101                         timezone
0102                     }
0103                     scheduledArrivalTime: arrivalTime
0104                     scheduledDepartureTime: departureTime
0105                 }
0106                 legGeometry {
0107                     length
0108                     points
0109                 }
0110             }
0111         }
0112     }
0113 }