@opentripplanner/core-utils 11.4.2-mobility-profile → 11.4.3
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/esm/graphql.d.js +2 -0
- package/esm/graphql.d.js.map +1 -0
- package/esm/index.js +26 -0
- package/esm/index.js.map +1 -0
- package/esm/itinerary.js +688 -0
- package/esm/itinerary.js.map +1 -0
- package/esm/map.js +53 -0
- package/esm/map.js.map +1 -0
- package/esm/profile.js +172 -0
- package/esm/profile.js.map +1 -0
- package/esm/query-gen.js +233 -0
- package/esm/query-gen.js.map +1 -0
- package/esm/query-params.js +786 -0
- package/esm/query-params.js.map +1 -0
- package/esm/query.js +538 -0
- package/esm/query.js.map +1 -0
- package/esm/route.js +460 -0
- package/esm/route.js.map +1 -0
- package/esm/storage.js +46 -0
- package/esm/storage.js.map +1 -0
- package/esm/suspense.js +13 -0
- package/esm/suspense.js.map +1 -0
- package/esm/time.js +94 -0
- package/esm/time.js.map +1 -0
- package/esm/ui.js +48 -0
- package/esm/ui.js.map +1 -0
- package/lib/index.d.ts +2 -0
- package/lib/index.d.ts.map +1 -1
- package/lib/index.js +10 -0
- package/lib/index.js.map +1 -1
- package/lib/query-gen.d.ts +1 -2
- package/lib/query-gen.d.ts.map +1 -1
- package/lib/query-gen.js +3 -5
- package/lib/query-gen.js.map +1 -1
- package/lib/suspense.d.ts +8 -0
- package/lib/suspense.d.ts.map +1 -0
- package/package.json +1 -1
- package/src/index.ts +2 -0
- package/src/otpSchema.json +0 -10
- package/src/planQuery.graphql +0 -2
- package/src/query-gen.ts +2 -5
- package/src/suspense.tsx +19 -0
- package/tsconfig.json +1 -2
- package/tsconfig.tsbuildinfo +1 -0
- package/lib/__tests__/__mocks__/bike-rental-itinerary.json +0 -863
- package/lib/__tests__/__mocks__/config.json +0 -54
- package/lib/__tests__/__mocks__/fare-products-itinerary.json +0 -1299
- package/lib/__tests__/__mocks__/routes.json +0 -107
- package/lib/__tests__/__mocks__/tnc-itinerary.json +0 -1726
- package/lib/bike-rental-itinerary.json +0 -863
- package/lib/config.json +0 -54
- package/lib/core-utils.story.d.ts +0 -21
- package/lib/core-utils.story.d.ts.map +0 -1
- package/lib/core-utils.story.js +0 -69
- package/lib/core-utils.story.js.map +0 -1
- package/lib/fare-products-itinerary.json +0 -1299
- package/lib/otpSchema.json +0 -13373
- package/lib/planQuery.graphql +0 -281
- package/lib/routes.json +0 -107
- package/lib/tnc-itinerary.json +0 -1726
package/lib/planQuery.graphql
DELETED
|
@@ -1,281 +0,0 @@
|
|
|
1
|
-
query Plan(
|
|
2
|
-
$arriveBy: Boolean
|
|
3
|
-
$banned: InputBanned
|
|
4
|
-
$bikeReluctance: Float
|
|
5
|
-
$carReluctance: Float
|
|
6
|
-
$date: String
|
|
7
|
-
$fromPlace: String!
|
|
8
|
-
$modes: [TransportMode]
|
|
9
|
-
$numItineraries: Int
|
|
10
|
-
$preferred: InputPreferred
|
|
11
|
-
$time: String
|
|
12
|
-
$toPlace: String!
|
|
13
|
-
$unpreferred: InputUnpreferred
|
|
14
|
-
$walkReluctance: Float
|
|
15
|
-
$walkSpeed: Float
|
|
16
|
-
$wheelchair: Boolean
|
|
17
|
-
) {
|
|
18
|
-
plan(
|
|
19
|
-
arriveBy: $arriveBy
|
|
20
|
-
banned: $banned
|
|
21
|
-
bikeReluctance: $bikeReluctance
|
|
22
|
-
carReluctance: $carReluctance
|
|
23
|
-
date: $date
|
|
24
|
-
fromPlace: $fromPlace
|
|
25
|
-
# Currently only supporting EN locale, used for times and text
|
|
26
|
-
locale: "en"
|
|
27
|
-
numItineraries: $numItineraries
|
|
28
|
-
preferred: $preferred
|
|
29
|
-
time: $time
|
|
30
|
-
toPlace: $toPlace
|
|
31
|
-
transportModes: $modes
|
|
32
|
-
unpreferred: $unpreferred
|
|
33
|
-
walkReluctance: $walkReluctance
|
|
34
|
-
walkSpeed: $walkSpeed
|
|
35
|
-
wheelchair: $wheelchair
|
|
36
|
-
) {
|
|
37
|
-
itineraries {
|
|
38
|
-
accessibilityScore
|
|
39
|
-
duration
|
|
40
|
-
endTime
|
|
41
|
-
legs {
|
|
42
|
-
accessibilityScore
|
|
43
|
-
agency {
|
|
44
|
-
alerts {
|
|
45
|
-
alertDescriptionText
|
|
46
|
-
alertHeaderText
|
|
47
|
-
alertUrl
|
|
48
|
-
effectiveStartDate
|
|
49
|
-
id
|
|
50
|
-
}
|
|
51
|
-
gtfsId
|
|
52
|
-
id: gtfsId
|
|
53
|
-
name
|
|
54
|
-
timezone
|
|
55
|
-
url
|
|
56
|
-
}
|
|
57
|
-
alerts {
|
|
58
|
-
alertDescriptionText
|
|
59
|
-
alertHeaderText
|
|
60
|
-
alertUrl
|
|
61
|
-
effectiveStartDate
|
|
62
|
-
id
|
|
63
|
-
}
|
|
64
|
-
arrivalDelay
|
|
65
|
-
departureDelay
|
|
66
|
-
distance
|
|
67
|
-
dropOffBookingInfo {
|
|
68
|
-
contactInfo {
|
|
69
|
-
bookingUrl
|
|
70
|
-
infoUrl
|
|
71
|
-
phoneNumber
|
|
72
|
-
}
|
|
73
|
-
earliestBookingTime {
|
|
74
|
-
daysPrior
|
|
75
|
-
time
|
|
76
|
-
}
|
|
77
|
-
latestBookingTime {
|
|
78
|
-
daysPrior
|
|
79
|
-
time
|
|
80
|
-
}
|
|
81
|
-
message
|
|
82
|
-
}
|
|
83
|
-
dropoffType
|
|
84
|
-
duration
|
|
85
|
-
endTime
|
|
86
|
-
fareProducts {
|
|
87
|
-
id
|
|
88
|
-
product {
|
|
89
|
-
__typename
|
|
90
|
-
id
|
|
91
|
-
medium {
|
|
92
|
-
id
|
|
93
|
-
name
|
|
94
|
-
}
|
|
95
|
-
name
|
|
96
|
-
riderCategory {
|
|
97
|
-
id
|
|
98
|
-
name
|
|
99
|
-
}
|
|
100
|
-
... on DefaultFareProduct {
|
|
101
|
-
price {
|
|
102
|
-
amount
|
|
103
|
-
currency {
|
|
104
|
-
code
|
|
105
|
-
digits
|
|
106
|
-
}
|
|
107
|
-
}
|
|
108
|
-
}
|
|
109
|
-
}
|
|
110
|
-
}
|
|
111
|
-
from {
|
|
112
|
-
lat
|
|
113
|
-
lon
|
|
114
|
-
name
|
|
115
|
-
rentalVehicle {
|
|
116
|
-
id
|
|
117
|
-
network
|
|
118
|
-
}
|
|
119
|
-
stop {
|
|
120
|
-
alerts {
|
|
121
|
-
alertDescriptionText
|
|
122
|
-
alertHeaderText
|
|
123
|
-
alertUrl
|
|
124
|
-
effectiveStartDate
|
|
125
|
-
id
|
|
126
|
-
}
|
|
127
|
-
code
|
|
128
|
-
gtfsId
|
|
129
|
-
id
|
|
130
|
-
lat
|
|
131
|
-
lon
|
|
132
|
-
}
|
|
133
|
-
vertexType
|
|
134
|
-
}
|
|
135
|
-
headsign
|
|
136
|
-
interlineWithPreviousLeg
|
|
137
|
-
intermediateStops {
|
|
138
|
-
lat
|
|
139
|
-
locationType
|
|
140
|
-
lon
|
|
141
|
-
name
|
|
142
|
-
stopCode: code
|
|
143
|
-
stopId: id
|
|
144
|
-
}
|
|
145
|
-
legGeometry {
|
|
146
|
-
length
|
|
147
|
-
points
|
|
148
|
-
}
|
|
149
|
-
mode
|
|
150
|
-
pickupBookingInfo {
|
|
151
|
-
contactInfo {
|
|
152
|
-
bookingUrl
|
|
153
|
-
infoUrl
|
|
154
|
-
phoneNumber
|
|
155
|
-
}
|
|
156
|
-
earliestBookingTime {
|
|
157
|
-
daysPrior
|
|
158
|
-
time
|
|
159
|
-
}
|
|
160
|
-
latestBookingTime {
|
|
161
|
-
daysPrior
|
|
162
|
-
time
|
|
163
|
-
}
|
|
164
|
-
message
|
|
165
|
-
}
|
|
166
|
-
pickupType
|
|
167
|
-
realTime
|
|
168
|
-
realtimeState
|
|
169
|
-
rentedBike
|
|
170
|
-
rideHailingEstimate {
|
|
171
|
-
arrival
|
|
172
|
-
maxPrice {
|
|
173
|
-
amount
|
|
174
|
-
currency {
|
|
175
|
-
code
|
|
176
|
-
}
|
|
177
|
-
}
|
|
178
|
-
minPrice {
|
|
179
|
-
amount
|
|
180
|
-
currency {
|
|
181
|
-
code
|
|
182
|
-
}
|
|
183
|
-
}
|
|
184
|
-
provider {
|
|
185
|
-
id
|
|
186
|
-
}
|
|
187
|
-
}
|
|
188
|
-
route {
|
|
189
|
-
alerts {
|
|
190
|
-
alertDescriptionText
|
|
191
|
-
alertHeaderText
|
|
192
|
-
alertUrl
|
|
193
|
-
effectiveStartDate
|
|
194
|
-
id
|
|
195
|
-
}
|
|
196
|
-
color
|
|
197
|
-
gtfsId
|
|
198
|
-
id: gtfsId
|
|
199
|
-
longName
|
|
200
|
-
shortName
|
|
201
|
-
textColor
|
|
202
|
-
type
|
|
203
|
-
}
|
|
204
|
-
startTime
|
|
205
|
-
steps {
|
|
206
|
-
absoluteDirection
|
|
207
|
-
alerts {
|
|
208
|
-
alertDescriptionText
|
|
209
|
-
alertHeaderText
|
|
210
|
-
alertUrl
|
|
211
|
-
effectiveStartDate
|
|
212
|
-
id
|
|
213
|
-
}
|
|
214
|
-
area
|
|
215
|
-
distance
|
|
216
|
-
elevationProfile {
|
|
217
|
-
distance
|
|
218
|
-
elevation
|
|
219
|
-
}
|
|
220
|
-
lat
|
|
221
|
-
lon
|
|
222
|
-
relativeDirection
|
|
223
|
-
stayOn
|
|
224
|
-
streetName
|
|
225
|
-
}
|
|
226
|
-
to {
|
|
227
|
-
lat
|
|
228
|
-
lon
|
|
229
|
-
name
|
|
230
|
-
rentalVehicle {
|
|
231
|
-
id
|
|
232
|
-
network
|
|
233
|
-
}
|
|
234
|
-
stop {
|
|
235
|
-
alerts {
|
|
236
|
-
alertDescriptionText
|
|
237
|
-
alertHeaderText
|
|
238
|
-
alertUrl
|
|
239
|
-
effectiveStartDate
|
|
240
|
-
id
|
|
241
|
-
}
|
|
242
|
-
code
|
|
243
|
-
gtfsId
|
|
244
|
-
id
|
|
245
|
-
lat
|
|
246
|
-
lon
|
|
247
|
-
}
|
|
248
|
-
vertexType
|
|
249
|
-
}
|
|
250
|
-
transitLeg
|
|
251
|
-
trip {
|
|
252
|
-
arrivalStoptime {
|
|
253
|
-
stop {
|
|
254
|
-
gtfsId
|
|
255
|
-
id
|
|
256
|
-
}
|
|
257
|
-
stopPosition
|
|
258
|
-
}
|
|
259
|
-
departureStoptime {
|
|
260
|
-
stop {
|
|
261
|
-
gtfsId
|
|
262
|
-
id
|
|
263
|
-
}
|
|
264
|
-
stopPosition
|
|
265
|
-
}
|
|
266
|
-
gtfsId
|
|
267
|
-
id
|
|
268
|
-
}
|
|
269
|
-
}
|
|
270
|
-
startTime
|
|
271
|
-
transfers: numberOfTransfers
|
|
272
|
-
waitingTime
|
|
273
|
-
walkTime
|
|
274
|
-
}
|
|
275
|
-
routingErrors {
|
|
276
|
-
code
|
|
277
|
-
description
|
|
278
|
-
inputField
|
|
279
|
-
}
|
|
280
|
-
}
|
|
281
|
-
}
|
package/lib/routes.json
DELETED
|
@@ -1,107 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"route1": {
|
|
3
|
-
"longName": "Across town",
|
|
4
|
-
"mode": "BUS",
|
|
5
|
-
"shortName": "10",
|
|
6
|
-
"sortOrder": 10
|
|
7
|
-
},
|
|
8
|
-
"route2": {
|
|
9
|
-
"longName": "Around town",
|
|
10
|
-
"mode": "BUS",
|
|
11
|
-
"shortName": "20",
|
|
12
|
-
"sortOrder": 2
|
|
13
|
-
},
|
|
14
|
-
"route3": {
|
|
15
|
-
"longName": "Around another town",
|
|
16
|
-
"shortName": "3",
|
|
17
|
-
"sortOrder": -999,
|
|
18
|
-
"type": 3
|
|
19
|
-
},
|
|
20
|
-
"route4": {
|
|
21
|
-
"longName": "Loop route",
|
|
22
|
-
"mode": "BUS",
|
|
23
|
-
"shortName": "2",
|
|
24
|
-
"sortOrder": -999
|
|
25
|
-
},
|
|
26
|
-
"route5": {
|
|
27
|
-
"longName": "A-line",
|
|
28
|
-
"mode": "BUS",
|
|
29
|
-
"shortName": "A",
|
|
30
|
-
"sortOrder": -999
|
|
31
|
-
},
|
|
32
|
-
"route6": {
|
|
33
|
-
"longName": "B-line",
|
|
34
|
-
"mode": "BUS",
|
|
35
|
-
"shortName": "B",
|
|
36
|
-
"sortOrder": -999
|
|
37
|
-
},
|
|
38
|
-
"route7": {
|
|
39
|
-
"longName": "A meandering route",
|
|
40
|
-
"mode": "BUS",
|
|
41
|
-
"sortOrder": -999
|
|
42
|
-
},
|
|
43
|
-
"route8": {
|
|
44
|
-
"longName": "Zig-zagging route",
|
|
45
|
-
"mode": "BUS",
|
|
46
|
-
"shortName": "30",
|
|
47
|
-
"sortOrder": 2
|
|
48
|
-
},
|
|
49
|
-
"route9": {
|
|
50
|
-
"longName": "Express route",
|
|
51
|
-
"mode": "BUS",
|
|
52
|
-
"shortName": "30",
|
|
53
|
-
"sortOrder": 2
|
|
54
|
-
},
|
|
55
|
-
"route10": {
|
|
56
|
-
"longName": "Variation of express route",
|
|
57
|
-
"mode": "BUS",
|
|
58
|
-
"shortName": "30",
|
|
59
|
-
"sortOrder": 2
|
|
60
|
-
},
|
|
61
|
-
"route11": {
|
|
62
|
-
"longName": "Local route",
|
|
63
|
-
"mode": "BUS",
|
|
64
|
-
"shortName": "6",
|
|
65
|
-
"sortOrder": 2
|
|
66
|
-
},
|
|
67
|
-
"route12": {
|
|
68
|
-
"longName": "Intercity Train",
|
|
69
|
-
"mode": "RAIL",
|
|
70
|
-
"shortName": "IC",
|
|
71
|
-
"sortOrder": 2
|
|
72
|
-
},
|
|
73
|
-
"route13": {
|
|
74
|
-
"longName": "Yellow line Subway",
|
|
75
|
-
"mode": "SUBWAY",
|
|
76
|
-
"shortName": "Yellow",
|
|
77
|
-
"sortOrder": 2
|
|
78
|
-
},
|
|
79
|
-
"route14": {
|
|
80
|
-
"longName": "Xpress route C",
|
|
81
|
-
"mode": "BUS",
|
|
82
|
-
"shortName": "30C",
|
|
83
|
-
"sortOrder": 2
|
|
84
|
-
},
|
|
85
|
-
"route15": {
|
|
86
|
-
"longName": "Express route X",
|
|
87
|
-
"mode": "BUS",
|
|
88
|
-
"shortName": "30X",
|
|
89
|
-
"sortOrder": 2
|
|
90
|
-
},
|
|
91
|
-
"route16": {
|
|
92
|
-
"agencyId": "abc",
|
|
93
|
-
"agencyName": "Agency 1",
|
|
94
|
-
"longName": "Intercity Train 2",
|
|
95
|
-
"mode": "RAIL",
|
|
96
|
-
"routeId": "1:it2",
|
|
97
|
-
"shortName": "IC"
|
|
98
|
-
},
|
|
99
|
-
"route17": {
|
|
100
|
-
"agencyId": "abc",
|
|
101
|
-
"agencyName": "Acclaimed agency 1",
|
|
102
|
-
"longName": "Express route X",
|
|
103
|
-
"mode": "BUS",
|
|
104
|
-
"routeId": "2:erx",
|
|
105
|
-
"shortName": "30X"
|
|
106
|
-
}
|
|
107
|
-
}
|