mirror of
https://github.com/HSLdevcom/digitransit-ui
synced 2025-07-06 18:00:35 +02:00
120 lines
2 KiB
JavaScript
120 lines
2 KiB
JavaScript
import { graphql } from 'react-relay';
|
|
|
|
export const ItineraryFragment = graphql`
|
|
fragment ItineraryFragment on Itinerary {
|
|
start
|
|
end
|
|
emissionsPerPerson {
|
|
co2
|
|
}
|
|
legs {
|
|
realTime
|
|
realtimeState
|
|
transitLeg
|
|
start {
|
|
scheduledTime
|
|
estimated {
|
|
time
|
|
}
|
|
}
|
|
end {
|
|
scheduledTime
|
|
estimated {
|
|
time
|
|
}
|
|
}
|
|
mode
|
|
distance
|
|
duration
|
|
rentedBike
|
|
interlineWithPreviousLeg
|
|
intermediatePlace
|
|
intermediatePlaces {
|
|
stop {
|
|
zoneId
|
|
gtfsId
|
|
parentStation {
|
|
gtfsId
|
|
}
|
|
}
|
|
arrival {
|
|
scheduledTime
|
|
estimated {
|
|
time
|
|
}
|
|
}
|
|
}
|
|
route {
|
|
gtfsId
|
|
mode
|
|
shortName
|
|
type
|
|
color
|
|
agency {
|
|
name
|
|
}
|
|
alerts {
|
|
alertSeverityLevel
|
|
effectiveEndDate
|
|
effectiveStartDate
|
|
}
|
|
}
|
|
trip {
|
|
gtfsId
|
|
replacementMode
|
|
tripShortName
|
|
stoptimes {
|
|
stop {
|
|
gtfsId
|
|
}
|
|
}
|
|
occupancy {
|
|
occupancyStatus
|
|
}
|
|
}
|
|
from {
|
|
lat
|
|
lon
|
|
name
|
|
stop {
|
|
gtfsId
|
|
parentStation {
|
|
gtfsId
|
|
}
|
|
zoneId
|
|
alerts {
|
|
alertSeverityLevel
|
|
effectiveEndDate
|
|
effectiveStartDate
|
|
}
|
|
}
|
|
vehicleRentalStation {
|
|
availableVehicles {
|
|
total
|
|
}
|
|
rentalNetwork {
|
|
networkId
|
|
}
|
|
}
|
|
}
|
|
to {
|
|
stop {
|
|
gtfsId
|
|
parentStation {
|
|
gtfsId
|
|
}
|
|
zoneId
|
|
alerts {
|
|
alertSeverityLevel
|
|
effectiveEndDate
|
|
effectiveStartDate
|
|
}
|
|
}
|
|
vehicleParking {
|
|
name
|
|
vehicleParkingId
|
|
}
|
|
}
|
|
}
|
|
}
|
|
`;
|