@motis-project/motis-client 2.0.98 → 2.5.0
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/dist/chunk-35GMB6DP.js +1232 -0
- package/dist/chunk-5QEG6DOF.js +1247 -0
- package/dist/chunk-7PIP6KRC.js +1300 -0
- package/dist/chunk-7UKCGCXT.js +1247 -0
- package/dist/chunk-EM7IAOVY.js +91 -0
- package/dist/chunk-IHFNO6R3.js +62 -62
- package/dist/chunk-RM52T2X5.js +1056 -917
- package/dist/chunk-ZSHHWD3H.js +91 -0
- package/dist/index.d.ts +2 -2
- package/dist/index.js +8 -2
- package/dist/schemas.gen.d.ts +89 -15
- package/dist/schemas.gen.js +7 -1
- package/dist/services.gen.d.ts +11 -11
- package/dist/services.gen.js +1 -1
- package/dist/types.gen.d.ts +171 -27
- package/package.json +1 -1
package/dist/types.gen.d.ts
CHANGED
|
@@ -199,10 +199,18 @@ type Match = {
|
|
|
199
199
|
* house number
|
|
200
200
|
*/
|
|
201
201
|
houseNumber?: string;
|
|
202
|
+
/**
|
|
203
|
+
* ISO3166-1 country code from OpenStreetMap
|
|
204
|
+
*/
|
|
205
|
+
country?: string;
|
|
202
206
|
/**
|
|
203
207
|
* zip code
|
|
204
208
|
*/
|
|
205
209
|
zip?: string;
|
|
210
|
+
/**
|
|
211
|
+
* timezone name (e.g. "Europe/Berlin")
|
|
212
|
+
*/
|
|
213
|
+
tz?: string;
|
|
206
214
|
/**
|
|
207
215
|
* list of areas
|
|
208
216
|
*/
|
|
@@ -226,6 +234,14 @@ type ElevationCosts = 'NONE' | 'LOW' | 'HIGH';
|
|
|
226
234
|
* Different accessibility profiles for pedestrians.
|
|
227
235
|
*/
|
|
228
236
|
type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
|
|
237
|
+
/**
|
|
238
|
+
* Average speed for pedestrian routing in meters per second
|
|
239
|
+
*/
|
|
240
|
+
type PedestrianSpeed = number;
|
|
241
|
+
/**
|
|
242
|
+
* Average speed for bike routing in meters per second
|
|
243
|
+
*/
|
|
244
|
+
type CyclingSpeed = number;
|
|
229
245
|
/**
|
|
230
246
|
* # Street modes
|
|
231
247
|
*
|
|
@@ -240,15 +256,15 @@ type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
|
|
|
240
256
|
*
|
|
241
257
|
* # Transit modes
|
|
242
258
|
*
|
|
243
|
-
* - `TRANSIT`: translates to `RAIL,
|
|
259
|
+
* - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`
|
|
244
260
|
* - `TRAM`: trams
|
|
245
|
-
* - `SUBWAY`: subway trains
|
|
261
|
+
* - `SUBWAY`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)
|
|
246
262
|
* - `FERRY`: ferries
|
|
247
263
|
* - `AIRPLANE`: airline flights
|
|
248
264
|
* - `BUS`: short distance buses (does not include `COACH`)
|
|
249
265
|
* - `COACH`: long distance buses (does not include `BUS`)
|
|
250
|
-
* - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL`
|
|
251
|
-
* - `
|
|
266
|
+
* - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY`
|
|
267
|
+
* - `SUBURBAN`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)
|
|
252
268
|
* - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)
|
|
253
269
|
* - `LONG_DISTANCE`: long distance inter city trains
|
|
254
270
|
* - `NIGHT_RAIL`: long distance night trains
|
|
@@ -256,10 +272,12 @@ type PedestrianProfile = 'FOOT' | 'WHEELCHAIR';
|
|
|
256
272
|
* - `REGIONAL_RAIL`: regional train
|
|
257
273
|
* - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).
|
|
258
274
|
* - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.
|
|
259
|
-
* - `
|
|
275
|
+
* - `AERIAL_LIFT`: Aerial lift, suspended cable car (e.g., gondola lift, aerial tramway). Cable transport where cabins, cars, gondolas or open chairs are suspended by means of one or more cables.
|
|
276
|
+
* - `AREAL_LIFT`: deprecated
|
|
277
|
+
* - `METRO`: deprecated
|
|
260
278
|
*
|
|
261
279
|
*/
|
|
262
|
-
type Mode = 'WALK' | 'BIKE' | 'RENTAL' | 'CAR' | 'CAR_PARKING' | 'CAR_DROPOFF' | 'ODM' | 'FLEX' | 'TRANSIT' | 'TRAM' | 'SUBWAY' | 'FERRY' | 'AIRPLANE' | '
|
|
280
|
+
type Mode = 'WALK' | 'BIKE' | 'RENTAL' | 'CAR' | 'CAR_PARKING' | 'CAR_DROPOFF' | 'ODM' | 'FLEX' | 'TRANSIT' | 'TRAM' | 'SUBWAY' | 'FERRY' | 'AIRPLANE' | 'SUBURBAN' | 'BUS' | 'COACH' | 'RAIL' | 'HIGHSPEED_RAIL' | 'LONG_DISTANCE' | 'NIGHT_RAIL' | 'REGIONAL_FAST_RAIL' | 'REGIONAL_RAIL' | 'CABLE_CAR' | 'FUNICULAR' | 'AERIAL_LIFT' | 'OTHER' | 'AREAL_LIFT' | 'METRO';
|
|
263
281
|
/**
|
|
264
282
|
* - `NORMAL` - latitude / longitude coordinate or address
|
|
265
283
|
* - `BIKESHARE` - bike sharing station
|
|
@@ -294,6 +312,10 @@ type Place = {
|
|
|
294
312
|
* level according to OpenStreetMap
|
|
295
313
|
*/
|
|
296
314
|
level: number;
|
|
315
|
+
/**
|
|
316
|
+
* timezone name (e.g. "Europe/Berlin")
|
|
317
|
+
*/
|
|
318
|
+
tz?: string;
|
|
297
319
|
/**
|
|
298
320
|
* arrival time
|
|
299
321
|
*/
|
|
@@ -413,18 +435,40 @@ type StopTime = {
|
|
|
413
435
|
*/
|
|
414
436
|
realTime: boolean;
|
|
415
437
|
/**
|
|
416
|
-
*
|
|
438
|
+
* The headsign of the bus or train being used.
|
|
417
439
|
* For non-transit legs, null
|
|
418
440
|
*
|
|
419
441
|
*/
|
|
420
442
|
headsign: string;
|
|
443
|
+
/**
|
|
444
|
+
* final stop of this trip
|
|
445
|
+
*/
|
|
446
|
+
tripTo: Place;
|
|
421
447
|
agencyId: string;
|
|
422
448
|
agencyName: string;
|
|
423
449
|
agencyUrl: string;
|
|
424
450
|
routeColor?: string;
|
|
425
451
|
routeTextColor?: string;
|
|
426
452
|
tripId: string;
|
|
453
|
+
routeType?: number;
|
|
427
454
|
routeShortName: string;
|
|
455
|
+
routeLongName: string;
|
|
456
|
+
tripShortName: string;
|
|
457
|
+
displayName: string;
|
|
458
|
+
/**
|
|
459
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
460
|
+
*
|
|
461
|
+
* Stops on the trips before this stop. Returned only if `fetchStop` and `arriveBy` are `true`.
|
|
462
|
+
*
|
|
463
|
+
*/
|
|
464
|
+
previousStops?: Array<Place>;
|
|
465
|
+
/**
|
|
466
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
467
|
+
*
|
|
468
|
+
* Stops on the trips after this stop. Returned only if `fetchStop` is `true` and `arriveBy` is `false`.
|
|
469
|
+
*
|
|
470
|
+
*/
|
|
471
|
+
nextStops?: Array<Place>;
|
|
428
472
|
/**
|
|
429
473
|
* Type of pickup (for departures) or dropoff (for arrivals), may be disallowed either due to schedule, skipped stops or cancellations
|
|
430
474
|
*/
|
|
@@ -451,9 +495,13 @@ type TripInfo = {
|
|
|
451
495
|
*/
|
|
452
496
|
tripId: string;
|
|
453
497
|
/**
|
|
454
|
-
* trip display name
|
|
498
|
+
* trip display name (api version < 4)
|
|
455
499
|
*/
|
|
456
|
-
routeShortName
|
|
500
|
+
routeShortName?: string;
|
|
501
|
+
/**
|
|
502
|
+
* trip display name (api version >= 4)
|
|
503
|
+
*/
|
|
504
|
+
displayName?: string;
|
|
457
505
|
};
|
|
458
506
|
/**
|
|
459
507
|
* trip segment between two stops to show a trip on a map
|
|
@@ -684,14 +732,21 @@ type Leg = {
|
|
|
684
732
|
*
|
|
685
733
|
*/
|
|
686
734
|
headsign?: string;
|
|
735
|
+
/**
|
|
736
|
+
* final stop of this trip (can differ from headsign)
|
|
737
|
+
*/
|
|
738
|
+
tripTo?: Place;
|
|
687
739
|
routeColor?: string;
|
|
688
740
|
routeTextColor?: string;
|
|
689
|
-
routeType?:
|
|
741
|
+
routeType?: number;
|
|
690
742
|
agencyName?: string;
|
|
691
743
|
agencyUrl?: string;
|
|
692
744
|
agencyId?: string;
|
|
693
745
|
tripId?: string;
|
|
694
746
|
routeShortName?: string;
|
|
747
|
+
routeLongName?: string;
|
|
748
|
+
tripShortName?: string;
|
|
749
|
+
displayName?: string;
|
|
695
750
|
/**
|
|
696
751
|
* Whether this trip is cancelled
|
|
697
752
|
*/
|
|
@@ -730,6 +785,13 @@ type Leg = {
|
|
|
730
785
|
* Alerts for this stop.
|
|
731
786
|
*/
|
|
732
787
|
alerts?: Array<Alert>;
|
|
788
|
+
/**
|
|
789
|
+
* If set, this attribute indicates that this trip has been expanded
|
|
790
|
+
* beyond the feed end date (enabled by config flag `timetable.dataset.extend_calendar`)
|
|
791
|
+
* by looping active weekdays, e.g. from calendar.txt in GTFS.
|
|
792
|
+
*
|
|
793
|
+
*/
|
|
794
|
+
loopedCalendarSince?: string;
|
|
733
795
|
};
|
|
734
796
|
type RiderCategory = {
|
|
735
797
|
/**
|
|
@@ -745,6 +807,14 @@ type RiderCategory = {
|
|
|
745
807
|
*/
|
|
746
808
|
eligibilityUrl?: string;
|
|
747
809
|
};
|
|
810
|
+
/**
|
|
811
|
+
* - `NONE`: No fare media involved (e.g., cash payment)
|
|
812
|
+
* - `PAPER_TICKET`: Physical paper ticket
|
|
813
|
+
* - `TRANSIT_CARD`: Physical transit card with stored value
|
|
814
|
+
* - `CONTACTLESS_EMV`: cEMV (contactless payment)
|
|
815
|
+
* - `MOBILE_APP`: Mobile app with virtual transit cards/passes
|
|
816
|
+
*
|
|
817
|
+
*/
|
|
748
818
|
type FareMediaType = 'NONE' | 'PAPER_TICKET' | 'TRANSIT_CARD' | 'CONTACTLESS_EMV' | 'MOBILE_APP';
|
|
749
819
|
type FareMedia = {
|
|
750
820
|
/**
|
|
@@ -880,6 +950,9 @@ type Transfer = {
|
|
|
880
950
|
*/
|
|
881
951
|
car?: number;
|
|
882
952
|
};
|
|
953
|
+
type Error = {
|
|
954
|
+
error?: string;
|
|
955
|
+
};
|
|
883
956
|
type PlanData = {
|
|
884
957
|
query: {
|
|
885
958
|
/**
|
|
@@ -889,6 +962,10 @@ type PlanData = {
|
|
|
889
962
|
*
|
|
890
963
|
*/
|
|
891
964
|
additionalTransferTime?: number;
|
|
965
|
+
/**
|
|
966
|
+
* algorithm to use
|
|
967
|
+
*/
|
|
968
|
+
algorithm?: 'RAPTOR' | 'TB';
|
|
892
969
|
/**
|
|
893
970
|
* Optional. Default is `false`.
|
|
894
971
|
*
|
|
@@ -897,6 +974,13 @@ type PlanData = {
|
|
|
897
974
|
*
|
|
898
975
|
*/
|
|
899
976
|
arriveBy?: boolean;
|
|
977
|
+
/**
|
|
978
|
+
* Optional
|
|
979
|
+
*
|
|
980
|
+
* Average speed for bike routing.
|
|
981
|
+
*
|
|
982
|
+
*/
|
|
983
|
+
cyclingSpeed?: CyclingSpeed;
|
|
900
984
|
/**
|
|
901
985
|
* - true: Compute transfer polylines and step instructions.
|
|
902
986
|
* - false: Only return basic information (start time, end time, duration) for transfers.
|
|
@@ -975,11 +1059,19 @@ type PlanData = {
|
|
|
975
1059
|
elevationCosts?: ElevationCosts;
|
|
976
1060
|
/**
|
|
977
1061
|
* Optional. Experimental. Default is `1.0`.
|
|
978
|
-
* Factor with which the duration of the fastest direct connection is multiplied.
|
|
979
|
-
* Values > 1.0 allow connections that are slower than the fastest direct connection to be found.
|
|
1062
|
+
* Factor with which the duration of the fastest direct non-public-transit connection is multiplied.
|
|
1063
|
+
* Values > 1.0 allow transit connections that are slower than the fastest direct non-public-transit connection to be found.
|
|
980
1064
|
*
|
|
981
1065
|
*/
|
|
982
1066
|
fastestDirectFactor?: number;
|
|
1067
|
+
/**
|
|
1068
|
+
* Optional.
|
|
1069
|
+
* Factor with which the duration of the fastest slowDirect connection is multiplied.
|
|
1070
|
+
* Values > 1.0 allow connections that are slower than the fastest direct transit connection to be found.
|
|
1071
|
+
* Values < 1.0 will return all slowDirect connections.
|
|
1072
|
+
*
|
|
1073
|
+
*/
|
|
1074
|
+
fastestSlowDirectFactor?: number;
|
|
983
1075
|
/**
|
|
984
1076
|
* \`latitude,longitude[,level]\` tuple with
|
|
985
1077
|
* - latitude and longitude in degrees
|
|
@@ -1031,6 +1123,12 @@ type PlanData = {
|
|
|
1031
1123
|
*
|
|
1032
1124
|
*/
|
|
1033
1125
|
joinInterlinedLegs?: boolean;
|
|
1126
|
+
/**
|
|
1127
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
1128
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1129
|
+
*
|
|
1130
|
+
*/
|
|
1131
|
+
language?: string;
|
|
1034
1132
|
/**
|
|
1035
1133
|
* Optional. Experimental. Number of luggage pieces; base unit: airline cabin luggage (e.g. for ODM or price calculation)
|
|
1036
1134
|
*
|
|
@@ -1039,6 +1137,7 @@ type PlanData = {
|
|
|
1039
1137
|
/**
|
|
1040
1138
|
* Optional. Default is 30min which is `1800`.
|
|
1041
1139
|
* Maximum time in seconds for direct connections.
|
|
1140
|
+
* Is limited by server config variable `street_routing_max_direct_seconds`.
|
|
1042
1141
|
*
|
|
1043
1142
|
*/
|
|
1044
1143
|
maxDirectTime?: number;
|
|
@@ -1052,12 +1151,14 @@ type PlanData = {
|
|
|
1052
1151
|
/**
|
|
1053
1152
|
* Optional. Default is 15min which is `900`.
|
|
1054
1153
|
* Maximum time in seconds for the last street leg.
|
|
1154
|
+
* Is limited by server config variable `street_routing_max_prepost_transit_seconds`.
|
|
1055
1155
|
*
|
|
1056
1156
|
*/
|
|
1057
1157
|
maxPostTransitTime?: number;
|
|
1058
1158
|
/**
|
|
1059
1159
|
* Optional. Default is 15min which is `900`.
|
|
1060
1160
|
* Maximum time in seconds for the first street leg.
|
|
1161
|
+
* Is limited by server config variable `street_routing_max_prepost_transit_seconds`.
|
|
1061
1162
|
*
|
|
1062
1163
|
*/
|
|
1063
1164
|
maxPreTransitTime?: number;
|
|
@@ -1126,6 +1227,13 @@ type PlanData = {
|
|
|
1126
1227
|
*
|
|
1127
1228
|
*/
|
|
1128
1229
|
pedestrianProfile?: PedestrianProfile;
|
|
1230
|
+
/**
|
|
1231
|
+
* Optional
|
|
1232
|
+
*
|
|
1233
|
+
* Average speed for pedestrian routing.
|
|
1234
|
+
*
|
|
1235
|
+
*/
|
|
1236
|
+
pedestrianSpeed?: PedestrianSpeed;
|
|
1129
1237
|
/**
|
|
1130
1238
|
* Optional. Default is `WALK`. Only applies if the `to` place is a coordinate (not a transit stop). Does not apply to direct connections (see `directModes`).
|
|
1131
1239
|
*
|
|
@@ -1229,7 +1337,7 @@ type PlanData = {
|
|
|
1229
1337
|
*/
|
|
1230
1338
|
searchWindow?: number;
|
|
1231
1339
|
/**
|
|
1232
|
-
* Optional. Experimental. Adds overtaken direct connections.
|
|
1340
|
+
* Optional. Experimental. Adds overtaken direct public transit connections.
|
|
1233
1341
|
*/
|
|
1234
1342
|
slowDirect?: boolean;
|
|
1235
1343
|
/**
|
|
@@ -1286,7 +1394,7 @@ type PlanData = {
|
|
|
1286
1394
|
/**
|
|
1287
1395
|
* Optional. Default is `TRANSIT` which allows all transit modes (no restriction).
|
|
1288
1396
|
* Allowed modes for the transit part. If empty, no transit connections will be computed.
|
|
1289
|
-
* For example, this can be used to allow only `
|
|
1397
|
+
* For example, this can be used to allow only `SUBURBAN,SUBWAY,TRAM`.
|
|
1290
1398
|
*
|
|
1291
1399
|
*/
|
|
1292
1400
|
transitModes?: Array<Mode>;
|
|
@@ -1364,7 +1472,7 @@ type PlanResponse = ({
|
|
|
1364
1472
|
*/
|
|
1365
1473
|
nextPageCursor: string;
|
|
1366
1474
|
});
|
|
1367
|
-
type PlanError =
|
|
1475
|
+
type PlanError = (Error);
|
|
1368
1476
|
type OneToManyData = {
|
|
1369
1477
|
query: {
|
|
1370
1478
|
/**
|
|
@@ -1431,6 +1539,13 @@ type OneToAllData = {
|
|
|
1431
1539
|
*
|
|
1432
1540
|
*/
|
|
1433
1541
|
arriveBy?: boolean;
|
|
1542
|
+
/**
|
|
1543
|
+
* Optional
|
|
1544
|
+
*
|
|
1545
|
+
* Average speed for bike routing.
|
|
1546
|
+
*
|
|
1547
|
+
*/
|
|
1548
|
+
cyclingSpeed?: CyclingSpeed;
|
|
1434
1549
|
/**
|
|
1435
1550
|
* Optional. Default is `NONE`.
|
|
1436
1551
|
*
|
|
@@ -1462,6 +1577,7 @@ type OneToAllData = {
|
|
|
1462
1577
|
* Optional. Default is 15min which is `900`.
|
|
1463
1578
|
* - `arriveBy=true`: Maximum time in seconds for the street leg at `one` location.
|
|
1464
1579
|
* - `arriveBy=false`: Currently not used
|
|
1580
|
+
* Is limited by server config variable `street_routing_max_prepost_transit_seconds`.
|
|
1465
1581
|
*
|
|
1466
1582
|
*/
|
|
1467
1583
|
maxPostTransitTime?: number;
|
|
@@ -1469,6 +1585,7 @@ type OneToAllData = {
|
|
|
1469
1585
|
* Optional. Default is 15min which is `900`.
|
|
1470
1586
|
* - `arriveBy=true`: Currently not used
|
|
1471
1587
|
* - `arriveBy=false`: Maximum time in seconds for the street leg at `one` location.
|
|
1588
|
+
* Is limited by server config variable `street_routing_max_prepost_transit_seconds`.
|
|
1472
1589
|
*
|
|
1473
1590
|
*/
|
|
1474
1591
|
maxPreTransitTime?: number;
|
|
@@ -1493,7 +1610,7 @@ type OneToAllData = {
|
|
|
1493
1610
|
*/
|
|
1494
1611
|
maxTransfers?: number;
|
|
1495
1612
|
/**
|
|
1496
|
-
* maximum travel time in minutes
|
|
1613
|
+
* The maximum travel time in minutes. Defaults to 90. The limit may be increased by the server administrator using `onetoall_max_travel_minutes` option in `config.yml`. See documentation for details.
|
|
1497
1614
|
*/
|
|
1498
1615
|
maxTravelTime: number;
|
|
1499
1616
|
/**
|
|
@@ -1522,6 +1639,13 @@ type OneToAllData = {
|
|
|
1522
1639
|
*
|
|
1523
1640
|
*/
|
|
1524
1641
|
pedestrianProfile?: PedestrianProfile;
|
|
1642
|
+
/**
|
|
1643
|
+
* Optional
|
|
1644
|
+
*
|
|
1645
|
+
* Average speed for pedestrian routing.
|
|
1646
|
+
*
|
|
1647
|
+
*/
|
|
1648
|
+
pedestrianSpeed?: PedestrianSpeed;
|
|
1525
1649
|
/**
|
|
1526
1650
|
* Optional. Default is `WALK`. The behavior depends on whether `arriveBy` is set:
|
|
1527
1651
|
* - `arriveBy=true`: Only applies if the `one` place is a coordinate (not a transit stop).
|
|
@@ -1572,7 +1696,7 @@ type OneToAllData = {
|
|
|
1572
1696
|
/**
|
|
1573
1697
|
* Optional. Default is `TRANSIT` which allows all transit modes (no restriction).
|
|
1574
1698
|
* Allowed modes for the transit part. If empty, no transit connections will be computed.
|
|
1575
|
-
* For example, this can be used to allow only `
|
|
1699
|
+
* For example, this can be used to allow only `SUBURBAN,SUBWAY,TRAM`.
|
|
1576
1700
|
*
|
|
1577
1701
|
*/
|
|
1578
1702
|
transitModes?: Array<Mode>;
|
|
@@ -1586,7 +1710,7 @@ type OneToAllData = {
|
|
|
1586
1710
|
};
|
|
1587
1711
|
};
|
|
1588
1712
|
type OneToAllResponse = (Reachable);
|
|
1589
|
-
type OneToAllError =
|
|
1713
|
+
type OneToAllError = (Error);
|
|
1590
1714
|
type ReverseGeocodeData = {
|
|
1591
1715
|
query: {
|
|
1592
1716
|
/**
|
|
@@ -1604,7 +1728,7 @@ type ReverseGeocodeData = {
|
|
|
1604
1728
|
};
|
|
1605
1729
|
};
|
|
1606
1730
|
type ReverseGeocodeResponse = (Array<Match>);
|
|
1607
|
-
type ReverseGeocodeError =
|
|
1731
|
+
type ReverseGeocodeError = (Error);
|
|
1608
1732
|
type GeocodeData = {
|
|
1609
1733
|
query: {
|
|
1610
1734
|
/**
|
|
@@ -1640,7 +1764,7 @@ type GeocodeData = {
|
|
|
1640
1764
|
};
|
|
1641
1765
|
};
|
|
1642
1766
|
type GeocodeResponse = (Array<Match>);
|
|
1643
|
-
type GeocodeError =
|
|
1767
|
+
type GeocodeError = (Error);
|
|
1644
1768
|
type TripData = {
|
|
1645
1769
|
query: {
|
|
1646
1770
|
/**
|
|
@@ -1653,6 +1777,12 @@ type TripData = {
|
|
|
1653
1777
|
*
|
|
1654
1778
|
*/
|
|
1655
1779
|
joinInterlinedLegs?: boolean;
|
|
1780
|
+
/**
|
|
1781
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
1782
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1783
|
+
*
|
|
1784
|
+
*/
|
|
1785
|
+
language?: string;
|
|
1656
1786
|
/**
|
|
1657
1787
|
* trip identifier (e.g. from an itinerary leg or stop event)
|
|
1658
1788
|
*/
|
|
@@ -1664,7 +1794,7 @@ type TripData = {
|
|
|
1664
1794
|
};
|
|
1665
1795
|
};
|
|
1666
1796
|
type TripResponse = (Itinerary);
|
|
1667
|
-
type TripError =
|
|
1797
|
+
type TripError = (Error);
|
|
1668
1798
|
type StoptimesData = {
|
|
1669
1799
|
query: {
|
|
1670
1800
|
/**
|
|
@@ -1696,6 +1826,20 @@ type StoptimesData = {
|
|
|
1696
1826
|
*
|
|
1697
1827
|
*/
|
|
1698
1828
|
exactRadius?: boolean;
|
|
1829
|
+
/**
|
|
1830
|
+
* Experimental. Expect unannounced breaking changes (without version bumps).
|
|
1831
|
+
*
|
|
1832
|
+
* Optional. Default is `false`. If set to `true`, the following stops are returned
|
|
1833
|
+
* for departures and the previous stops are returned for arrivals.
|
|
1834
|
+
*
|
|
1835
|
+
*/
|
|
1836
|
+
fetchStops?: boolean;
|
|
1837
|
+
/**
|
|
1838
|
+
* language tags as used in OpenStreetMap / GTFS
|
|
1839
|
+
* (usually BCP-47 / ISO 639-1, or ISO 639-2 if there's no ISO 639-1)
|
|
1840
|
+
*
|
|
1841
|
+
*/
|
|
1842
|
+
language?: string;
|
|
1699
1843
|
/**
|
|
1700
1844
|
* Optional. Default is all transit modes.
|
|
1701
1845
|
*
|
|
@@ -1762,7 +1906,7 @@ type StoptimesResponse = ({
|
|
|
1762
1906
|
*/
|
|
1763
1907
|
nextPageCursor: string;
|
|
1764
1908
|
});
|
|
1765
|
-
type StoptimesError =
|
|
1909
|
+
type StoptimesError = (Error);
|
|
1766
1910
|
type TripsData = {
|
|
1767
1911
|
query: {
|
|
1768
1912
|
/**
|
|
@@ -1788,7 +1932,7 @@ type TripsData = {
|
|
|
1788
1932
|
};
|
|
1789
1933
|
};
|
|
1790
1934
|
type TripsResponse = (Array<TripSegment>);
|
|
1791
|
-
type TripsError =
|
|
1935
|
+
type TripsError = (Error);
|
|
1792
1936
|
type InitialResponse = ({
|
|
1793
1937
|
/**
|
|
1794
1938
|
* latitude
|
|
@@ -1803,7 +1947,7 @@ type InitialResponse = ({
|
|
|
1803
1947
|
*/
|
|
1804
1948
|
zoom: number;
|
|
1805
1949
|
});
|
|
1806
|
-
type InitialError =
|
|
1950
|
+
type InitialError = (Error);
|
|
1807
1951
|
type StopsData = {
|
|
1808
1952
|
query: {
|
|
1809
1953
|
/**
|
|
@@ -1817,7 +1961,7 @@ type StopsData = {
|
|
|
1817
1961
|
};
|
|
1818
1962
|
};
|
|
1819
1963
|
type StopsResponse = (Array<Place>);
|
|
1820
|
-
type StopsError =
|
|
1964
|
+
type StopsError = (Error);
|
|
1821
1965
|
type LevelsData = {
|
|
1822
1966
|
query: {
|
|
1823
1967
|
/**
|
|
@@ -1831,7 +1975,7 @@ type LevelsData = {
|
|
|
1831
1975
|
};
|
|
1832
1976
|
};
|
|
1833
1977
|
type LevelsResponse = (Array<(number)>);
|
|
1834
|
-
type LevelsError =
|
|
1978
|
+
type LevelsError = (Error);
|
|
1835
1979
|
type TransfersData = {
|
|
1836
1980
|
query: {
|
|
1837
1981
|
/**
|
|
@@ -1861,4 +2005,4 @@ type TransfersResponse = ({
|
|
|
1861
2005
|
});
|
|
1862
2006
|
type TransfersError = unknown;
|
|
1863
2007
|
|
|
1864
|
-
export type { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, Direction, Duration, ElevationCosts, EncodedPolyline, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalReturnConstraint, ReverseGeocodeData, ReverseGeocodeError, ReverseGeocodeResponse, RiderCategory, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, Transfer, TransfersData, TransfersError, TransfersResponse, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType };
|
|
2008
|
+
export type { Alert, AlertCause, AlertEffect, AlertSeverityLevel, Area, CyclingSpeed, Direction, Duration, ElevationCosts, EncodedPolyline, Error, FareMedia, FareMediaType, FareProduct, FareTransfer, FareTransferRule, GeocodeData, GeocodeError, GeocodeResponse, InitialError, InitialResponse, Itinerary, Leg, LevelsData, LevelsError, LevelsResponse, LocationType, Match, Mode, OneToAllData, OneToAllError, OneToAllResponse, OneToManyData, OneToManyError, OneToManyResponse, PedestrianProfile, PedestrianSpeed, PickupDropoffType, Place, PlanData, PlanError, PlanResponse, Reachable, ReachablePlace, Rental, RentalFormFactor, RentalPropulsionType, RentalReturnConstraint, ReverseGeocodeData, ReverseGeocodeError, ReverseGeocodeResponse, RiderCategory, StepInstruction, StopTime, StopsData, StopsError, StopsResponse, StoptimesData, StoptimesError, StoptimesResponse, TimeRange, Token, Transfer, TransfersData, TransfersError, TransfersResponse, TripData, TripError, TripInfo, TripResponse, TripSegment, TripsData, TripsError, TripsResponse, VertexType };
|