Warning, /libraries/kpublictransport/src/lib/backends/otp/entur/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 $dateTime: DateTime!,
0010 $arriveBy: Boolean!,
0011 $maxResults: Int!,
0012 $lang: Locale!,
0013 $withIntermediateStops: Boolean!,
0014 $withPaths: Boolean!
0015 $allowBikeRental: Boolean!
0016 $modes: [Mode]!
0017 ) {
0018 plan: trip (
0019 from: { coordinates: { latitude: $fromLat, longitude: $fromLon } }
0020 to: { coordinates: { latitude: $toLat, longitude: $toLon } }
0021 dateTime: $dateTime
0022 arriveBy: $arriveBy
0023 numTripPatterns: $maxResults
0024 locale: $lang
0025 allowBikeRental: $allowBikeRental
0026 modes: $modes
0027 ) {
0028 itineraries: tripPatterns {
0029 legs {
0030 startTime: aimedStartTime
0031 endTime: aimedEndTime
0032 realTime: realtime
0033 expectedStartTime
0034 expectedEndTime
0035 distance
0036 mode
0037 transitLeg: ride
0038 rentedBike
0039 from: fromPlace { ...locationFragment }
0040 to: toPlace { ...locationFragment }
0041 line {
0042 presentation {
0043 color: colour
0044 textColor: textColour
0045 }
0046 transportMode
0047 type: transportSubmode
0048 shortName: publicCode
0049 name
0050 alerts: situations {
0051 alertHeaderTextTranslations: summary {
0052 language
0053 text: value
0054 }
0055 alertDescriptionTextTranslations: description {
0056 language
0057 text: value
0058 }
0059 }
0060 }
0061 intermediateStops: intermediateEstimatedCalls @include(if: $withIntermediateStops) {
0062 stop: quay {
0063 id
0064 name
0065 platformCode: publicCode
0066 lat: latitude
0067 lon: longitude
0068 timezone
0069 }
0070 scheduledArrivalTime: aimedArrivalTime
0071 expectedArrivalTime: actualArrivalTime
0072 scheduledDepartureTime: aimedDepartureTime
0073 expectedDepartureTime: actualDepartureTime
0074 }
0075 legGeometry: pointsOnLink @include(if: $withPaths) {
0076 length
0077 points
0078 }
0079 steps @include(if: $withPaths) {
0080 lat: latitude
0081 lon: longitude
0082 legStepText(locale: $lang)
0083 }
0084 }
0085 }
0086 }
0087 }
0088
0089 fragment locationFragment on Place {
0090 name
0091 lat: latitude
0092 lon: longitude
0093 stop: quay {
0094 platformCode: publicCode
0095 id
0096 timezone
0097 }
0098 bikeRentalStation {
0099 id
0100 networks,
0101 bikesAvailable
0102 }
0103 }