@motis-project/motis-client 2.5.0 → 2.7.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.
@@ -16,6 +16,7 @@ declare const AlertSeverityLevelSchema: {
16
16
  declare const TimeRangeSchema: {
17
17
  readonly description: "A time interval.\nThe interval is considered active at time t if t is greater than or equal to the start time and less than the end time.\n";
18
18
  readonly type: "object";
19
+ readonly required: readonly ["start", "end"];
19
20
  readonly properties: {
20
21
  readonly start: {
21
22
  readonly description: "If missing, the interval starts at minus infinity.\nIf a TimeRange is provided, either start or end must be provided - both fields cannot be empty.\n";
@@ -151,6 +152,11 @@ declare const LocationTypeSchema: {
151
152
  readonly type: "string";
152
153
  readonly enum: readonly ["ADDRESS", "PLACE", "STOP"];
153
154
  };
155
+ declare const ModeSchema: {
156
+ readonly description: "# Street modes\n\n - `WALK`\n - `BIKE`\n - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR`\n - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR_DROPOFF` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.\n - `ODM` on-demand taxis from the Prima+ÖV Project\n - `RIDE_SHARING` ride sharing from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`\n - `TRAM`: trams\n - `SUBWAY`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)\n - `FERRY`: ferries\n - `AIRPLANE`: airline flights\n - `BUS`: short distance buses (does not include `COACH`)\n - `COACH`: long distance buses (does not include `BUS`)\n - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY`\n - `SUBURBAN`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)\n - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)\n - `LONG_DISTANCE`: long distance inter city trains\n - `NIGHT_RAIL`: long distance night trains\n - `REGIONAL_FAST_RAIL`: regional express routes that skip low traffic stops to be faster\n - `REGIONAL_RAIL`: regional train\n - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).\n - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.\n - `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.\n - `AREAL_LIFT`: deprecated\n - `METRO`: deprecated\n";
157
+ readonly type: "string";
158
+ readonly enum: readonly ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "RIDE_SHARING", "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"];
159
+ };
154
160
  declare const MatchSchema: {
155
161
  readonly description: "GeoCoding match";
156
162
  readonly type: "object";
@@ -159,6 +165,10 @@ declare const MatchSchema: {
159
165
  readonly type: {
160
166
  readonly $ref: "#/components/schemas/LocationType";
161
167
  };
168
+ readonly category: {
169
+ readonly description: "Experimental. Type categories might be adjusted.\n\nFor OSM stop locations: the amenity type based on\nhttps://wiki.openstreetmap.org/wiki/OpenStreetMap_Carto/Symbols\n";
170
+ readonly type: "string";
171
+ };
162
172
  readonly tokens: {
163
173
  readonly description: "list of non-overlapping tokens that were matched";
164
174
  readonly type: "array";
@@ -217,6 +227,17 @@ declare const MatchSchema: {
217
227
  readonly description: "score according to the internal scoring system (the scoring algorithm might change in the future)";
218
228
  readonly type: "number";
219
229
  };
230
+ readonly modes: {
231
+ readonly description: "available transport modes for stops";
232
+ readonly type: "array";
233
+ readonly items: {
234
+ readonly $ref: "#/components/schemas/Mode";
235
+ };
236
+ };
237
+ readonly importance: {
238
+ readonly description: "importance of a stop, normalized from [0, 1]";
239
+ readonly type: "number";
240
+ };
220
241
  };
221
242
  };
222
243
  declare const ElevationCostsSchema: {
@@ -237,11 +258,6 @@ declare const CyclingSpeedSchema: {
237
258
  readonly description: "Average speed for bike routing in meters per second";
238
259
  readonly type: "number";
239
260
  };
240
- declare const ModeSchema: {
241
- readonly description: "# Street modes\n\n - `WALK`\n - `BIKE`\n - `RENTAL` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR`\n - `CAR_PARKING` Experimental. Expect unannounced breaking changes (without version bumps) for all parameters and returned structs.\n - `CAR_DROPOFF` Experimental. Expect unannounced breaking changes (without version bumps) for all perameters and returned structs.\n - `ODM` on-demand taxis from the Prima+ÖV Project\n - `FLEX` flexible transports\n\n# Transit modes\n\n - `TRANSIT`: translates to `RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER`\n - `TRAM`: trams\n - `SUBWAY`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)\n - `FERRY`: ferries\n - `AIRPLANE`: airline flights\n - `BUS`: short distance buses (does not include `COACH`)\n - `COACH`: long distance buses (does not include `BUS`)\n - `RAIL`: translates to `HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY`\n - `SUBURBAN`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)\n - `HIGHSPEED_RAIL`: long distance high speed trains (e.g. TGV)\n - `LONG_DISTANCE`: long distance inter city trains\n - `NIGHT_RAIL`: long distance night trains\n - `REGIONAL_FAST_RAIL`: regional express routes that skip low traffic stops to be faster\n - `REGIONAL_RAIL`: regional train\n - `CABLE_CAR`: Cable tram. Used for street-level rail cars where the cable runs beneath the vehicle (e.g., cable car in San Francisco).\n - `FUNICULAR`: Funicular. Any rail system designed for steep inclines.\n - `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.\n - `AREAL_LIFT`: deprecated\n - `METRO`: deprecated\n";
242
- readonly type: "string";
243
- readonly enum: readonly ["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"];
244
- };
245
261
  declare const VertexTypeSchema: {
246
262
  readonly type: "string";
247
263
  readonly description: "- `NORMAL` - latitude / longitude coordinate or address\n- `BIKESHARE` - bike sharing station\n- `TRANSIT` - transit stop\n";
@@ -264,6 +280,14 @@ declare const PlaceSchema: {
264
280
  readonly description: "The ID of the stop. This is often something that users don't care about.";
265
281
  readonly type: "string";
266
282
  };
283
+ readonly parentId: {
284
+ readonly description: "If it's not a root stop, this field contains the `stopId` of the parent stop.";
285
+ readonly type: "string";
286
+ };
287
+ readonly importance: {
288
+ readonly description: "The importance of the stop between 0-1.";
289
+ readonly type: "number";
290
+ };
267
291
  readonly lat: {
268
292
  readonly description: "latitude";
269
293
  readonly type: "number";
@@ -392,7 +416,7 @@ declare const ReachableSchema: {
392
416
  declare const StopTimeSchema: {
393
417
  readonly description: "departure or arrival event at a stop";
394
418
  readonly type: "object";
395
- readonly required: readonly ["place", "mode", "realTime", "headsign", "tripTo", "agencyId", "agencyName", "agencyUrl", "tripId", "routeShortName", "routeLongName", "tripShortName", "displayName", "pickupDropoffType", "cancelled", "tripCancelled", "source"];
419
+ readonly required: readonly ["place", "mode", "realTime", "headsign", "tripTo", "agencyId", "agencyName", "agencyUrl", "tripId", "routeId", "directionId", "routeShortName", "routeLongName", "tripShortName", "displayName", "pickupDropoffType", "cancelled", "tripCancelled", "source"];
396
420
  readonly properties: {
397
421
  readonly place: {
398
422
  readonly $ref: "#/components/schemas/Place";
@@ -423,6 +447,12 @@ declare const StopTimeSchema: {
423
447
  readonly agencyUrl: {
424
448
  readonly type: "string";
425
449
  };
450
+ readonly routeId: {
451
+ readonly type: "string";
452
+ };
453
+ readonly directionId: {
454
+ readonly type: "string";
455
+ };
426
456
  readonly routeColor: {
427
457
  readonly type: "string";
428
458
  };
@@ -654,8 +684,16 @@ declare const RentalReturnConstraintSchema: {
654
684
  declare const RentalSchema: {
655
685
  readonly description: "Vehicle rental";
656
686
  readonly type: "object";
657
- readonly required: readonly ["systemId"];
687
+ readonly required: readonly ["providerId", "providerGroupId", "systemId"];
658
688
  readonly properties: {
689
+ readonly providerId: {
690
+ readonly type: "string";
691
+ readonly description: "Rental provider ID";
692
+ };
693
+ readonly providerGroupId: {
694
+ readonly type: "string";
695
+ readonly description: "Rental provider group ID";
696
+ };
659
697
  readonly systemId: {
660
698
  readonly type: "string";
661
699
  readonly description: "Vehicle share system ID";
@@ -668,6 +706,10 @@ declare const RentalSchema: {
668
706
  readonly type: "string";
669
707
  readonly description: "URL of the vehicle share system";
670
708
  };
709
+ readonly color: {
710
+ readonly type: "string";
711
+ readonly description: "Color associated with this provider, in hexadecimal RGB format\n(e.g. \"#FF0000\" for red). Can be empty.\n";
712
+ };
671
713
  readonly stationName: {
672
714
  readonly type: "string";
673
715
  readonly description: "Name of the station";
@@ -703,6 +745,371 @@ declare const RentalSchema: {
703
745
  };
704
746
  };
705
747
  };
748
+ declare const MultiPolygonSchema: {
749
+ readonly type: "array";
750
+ readonly description: "A multi-polygon contains a number of polygons, each containing a number\nof rings, which are encoded as polylines (with precision 6).\n\nFor each polygon, the first ring is the outer ring, all subsequent rings\nare inner rings (holes).\n";
751
+ readonly items: {
752
+ readonly type: "array";
753
+ readonly items: {
754
+ readonly $ref: "#/components/schemas/EncodedPolyline";
755
+ };
756
+ };
757
+ };
758
+ declare const RentalZoneRestrictionsSchema: {
759
+ readonly type: "object";
760
+ readonly required: readonly ["vehicleTypeIdxs", "rideStartAllowed", "rideEndAllowed", "rideThroughAllowed"];
761
+ readonly properties: {
762
+ readonly vehicleTypeIdxs: {
763
+ readonly type: "array";
764
+ readonly description: "List of vehicle types (as indices into the provider's vehicle types\narray) to which these restrictions apply.\nIf empty, the restrictions apply to all vehicle types of the provider.\n";
765
+ readonly items: {
766
+ readonly type: "integer";
767
+ };
768
+ };
769
+ readonly rideStartAllowed: {
770
+ readonly type: "boolean";
771
+ readonly description: "whether the ride is allowed to start in this zone";
772
+ };
773
+ readonly rideEndAllowed: {
774
+ readonly type: "boolean";
775
+ readonly description: "whether the ride is allowed to end in this zone";
776
+ };
777
+ readonly rideThroughAllowed: {
778
+ readonly type: "boolean";
779
+ readonly description: "whether the ride is allowed to pass through this zone";
780
+ };
781
+ readonly stationParking: {
782
+ readonly type: "boolean";
783
+ readonly description: "whether vehicles can only be parked at stations in this zone";
784
+ };
785
+ };
786
+ };
787
+ declare const RentalVehicleTypeSchema: {
788
+ readonly type: "object";
789
+ readonly required: readonly ["id", "formFactor", "propulsionType", "returnConstraint", "returnConstraintGuessed"];
790
+ readonly properties: {
791
+ readonly id: {
792
+ readonly type: "string";
793
+ readonly description: "Unique identifier of the vehicle type (unique within the provider)";
794
+ };
795
+ readonly name: {
796
+ readonly type: "string";
797
+ readonly description: "Public name of the vehicle type (can be empty)";
798
+ };
799
+ readonly formFactor: {
800
+ readonly $ref: "#/components/schemas/RentalFormFactor";
801
+ };
802
+ readonly propulsionType: {
803
+ readonly $ref: "#/components/schemas/RentalPropulsionType";
804
+ };
805
+ readonly returnConstraint: {
806
+ readonly $ref: "#/components/schemas/RentalReturnConstraint";
807
+ };
808
+ readonly returnConstraintGuessed: {
809
+ readonly type: "boolean";
810
+ readonly description: "Whether the return constraint was guessed instead of being specified by the rental provider";
811
+ };
812
+ };
813
+ };
814
+ declare const RentalProviderSchema: {
815
+ readonly type: "object";
816
+ readonly required: readonly ["id", "name", "groupId", "bbox", "vehicleTypes", "formFactors", "defaultRestrictions", "globalGeofencingRules"];
817
+ readonly properties: {
818
+ readonly id: {
819
+ readonly type: "string";
820
+ readonly description: "Unique identifier of the rental provider";
821
+ };
822
+ readonly name: {
823
+ readonly type: "string";
824
+ readonly description: "Name of the provider to be displayed to customers";
825
+ };
826
+ readonly groupId: {
827
+ readonly type: "string";
828
+ readonly description: "Id of the rental provider group this provider belongs to";
829
+ };
830
+ readonly operator: {
831
+ readonly type: "string";
832
+ readonly description: "Name of the system operator";
833
+ };
834
+ readonly url: {
835
+ readonly type: "string";
836
+ readonly description: "URL of the vehicle share system";
837
+ };
838
+ readonly purchaseUrl: {
839
+ readonly type: "string";
840
+ readonly description: "URL where a customer can purchase a membership";
841
+ };
842
+ readonly color: {
843
+ readonly type: "string";
844
+ readonly description: "Color associated with this provider, in hexadecimal RGB format\n(e.g. \"#FF0000\" for red). Can be empty.\n";
845
+ };
846
+ readonly bbox: {
847
+ readonly type: "array";
848
+ readonly description: "Bounding box of the area covered by this rental provider,\n[west, south, east, north] as [lon, lat, lon, lat]\n";
849
+ readonly minItems: 4;
850
+ readonly maxItems: 4;
851
+ readonly items: {
852
+ readonly type: "number";
853
+ };
854
+ };
855
+ readonly vehicleTypes: {
856
+ readonly type: "array";
857
+ readonly items: {
858
+ readonly $ref: "#/components/schemas/RentalVehicleType";
859
+ };
860
+ };
861
+ readonly formFactors: {
862
+ readonly type: "array";
863
+ readonly description: "List of form factors offered by this provider";
864
+ readonly items: {
865
+ readonly $ref: "#/components/schemas/RentalFormFactor";
866
+ };
867
+ };
868
+ readonly defaultRestrictions: {
869
+ readonly $ref: "#/components/schemas/RentalZoneRestrictions";
870
+ };
871
+ readonly globalGeofencingRules: {
872
+ readonly type: "array";
873
+ readonly items: {
874
+ readonly $ref: "#/components/schemas/RentalZoneRestrictions";
875
+ };
876
+ };
877
+ };
878
+ };
879
+ declare const RentalProviderGroupSchema: {
880
+ readonly type: "object";
881
+ readonly required: readonly ["id", "name", "providers", "formFactors"];
882
+ readonly properties: {
883
+ readonly id: {
884
+ readonly type: "string";
885
+ readonly description: "Unique identifier of the rental provider group";
886
+ };
887
+ readonly name: {
888
+ readonly type: "string";
889
+ readonly description: "Name of the provider group to be displayed to customers";
890
+ };
891
+ readonly color: {
892
+ readonly type: "string";
893
+ readonly description: "Color associated with this provider group, in hexadecimal RGB format\n(e.g. \"#FF0000\" for red). Can be empty.\n";
894
+ };
895
+ readonly providers: {
896
+ readonly type: "array";
897
+ readonly description: "List of rental provider IDs that belong to this group";
898
+ readonly items: {
899
+ readonly type: "string";
900
+ };
901
+ };
902
+ readonly formFactors: {
903
+ readonly type: "array";
904
+ readonly description: "List of form factors offered by this provider group";
905
+ readonly items: {
906
+ readonly $ref: "#/components/schemas/RentalFormFactor";
907
+ };
908
+ };
909
+ };
910
+ };
911
+ declare const RentalStationSchema: {
912
+ readonly type: "object";
913
+ readonly required: readonly ["id", "providerId", "providerGroupId", "name", "lat", "lon", "isRenting", "isReturning", "numVehiclesAvailable", "formFactors", "vehicleTypesAvailable", "vehicleDocksAvailable", "bbox"];
914
+ readonly properties: {
915
+ readonly id: {
916
+ readonly type: "string";
917
+ readonly description: "Unique identifier of the rental station";
918
+ };
919
+ readonly providerId: {
920
+ readonly type: "string";
921
+ readonly description: "Unique identifier of the rental provider";
922
+ };
923
+ readonly providerGroupId: {
924
+ readonly type: "string";
925
+ readonly description: "Unique identifier of the rental provider group";
926
+ };
927
+ readonly name: {
928
+ readonly type: "string";
929
+ readonly description: "Public name of the station";
930
+ };
931
+ readonly lat: {
932
+ readonly description: "latitude";
933
+ readonly type: "number";
934
+ };
935
+ readonly lon: {
936
+ readonly description: "longitude";
937
+ readonly type: "number";
938
+ };
939
+ readonly address: {
940
+ readonly type: "string";
941
+ readonly description: "Address where the station is located";
942
+ };
943
+ readonly crossStreet: {
944
+ readonly type: "string";
945
+ readonly description: "Cross street or landmark where the station is located";
946
+ };
947
+ readonly rentalUriAndroid: {
948
+ readonly type: "string";
949
+ readonly description: "Rental URI for Android (deep link to the specific station)";
950
+ };
951
+ readonly rentalUriIOS: {
952
+ readonly type: "string";
953
+ readonly description: "Rental URI for iOS (deep link to the specific station)";
954
+ };
955
+ readonly rentalUriWeb: {
956
+ readonly type: "string";
957
+ readonly description: "Rental URI for web (deep link to the specific station)";
958
+ };
959
+ readonly isRenting: {
960
+ readonly type: "boolean";
961
+ readonly description: "true if vehicles can be rented from this station, false if it is temporarily out of service";
962
+ };
963
+ readonly isReturning: {
964
+ readonly type: "boolean";
965
+ readonly description: "true if vehicles can be returned to this station, false if it is temporarily out of service";
966
+ };
967
+ readonly numVehiclesAvailable: {
968
+ readonly type: "integer";
969
+ readonly description: "Number of vehicles available for rental at this station";
970
+ };
971
+ readonly formFactors: {
972
+ readonly type: "array";
973
+ readonly description: "List of form factors available for rental and/or return at this station";
974
+ readonly items: {
975
+ readonly $ref: "#/components/schemas/RentalFormFactor";
976
+ };
977
+ };
978
+ readonly vehicleTypesAvailable: {
979
+ readonly type: "object";
980
+ readonly description: "List of vehicle types currently available at this station (vehicle type ID -> count)";
981
+ readonly additionalProperties: {
982
+ readonly type: "integer";
983
+ };
984
+ };
985
+ readonly vehicleDocksAvailable: {
986
+ readonly type: "object";
987
+ readonly description: "List of vehicle docks currently available at this station (vehicle type ID -> count)";
988
+ readonly additionalProperties: {
989
+ readonly type: "integer";
990
+ };
991
+ };
992
+ readonly stationArea: {
993
+ readonly $ref: "#/components/schemas/MultiPolygon";
994
+ };
995
+ readonly bbox: {
996
+ readonly type: "array";
997
+ readonly description: "Bounding box of the area covered by this station,\n[west, south, east, north] as [lon, lat, lon, lat]\n";
998
+ readonly minItems: 4;
999
+ readonly maxItems: 4;
1000
+ readonly items: {
1001
+ readonly type: "number";
1002
+ };
1003
+ };
1004
+ };
1005
+ };
1006
+ declare const RentalVehicleSchema: {
1007
+ readonly type: "object";
1008
+ readonly required: readonly ["id", "providerId", "providerGroupId", "typeId", "lat", "lon", "formFactor", "propulsionType", "returnConstraint", "isReserved", "isDisabled"];
1009
+ readonly properties: {
1010
+ readonly id: {
1011
+ readonly type: "string";
1012
+ readonly description: "Unique identifier of the rental vehicle";
1013
+ };
1014
+ readonly providerId: {
1015
+ readonly type: "string";
1016
+ readonly description: "Unique identifier of the rental provider";
1017
+ };
1018
+ readonly providerGroupId: {
1019
+ readonly type: "string";
1020
+ readonly description: "Unique identifier of the rental provider group";
1021
+ };
1022
+ readonly typeId: {
1023
+ readonly type: "string";
1024
+ readonly description: "Vehicle type ID (unique within the provider)";
1025
+ };
1026
+ readonly lat: {
1027
+ readonly description: "latitude";
1028
+ readonly type: "number";
1029
+ };
1030
+ readonly lon: {
1031
+ readonly description: "longitude";
1032
+ readonly type: "number";
1033
+ };
1034
+ readonly formFactor: {
1035
+ readonly $ref: "#/components/schemas/RentalFormFactor";
1036
+ };
1037
+ readonly propulsionType: {
1038
+ readonly $ref: "#/components/schemas/RentalPropulsionType";
1039
+ };
1040
+ readonly returnConstraint: {
1041
+ readonly $ref: "#/components/schemas/RentalReturnConstraint";
1042
+ };
1043
+ readonly stationId: {
1044
+ readonly type: "string";
1045
+ readonly description: "Station ID if the vehicle is currently at a station";
1046
+ };
1047
+ readonly homeStationId: {
1048
+ readonly type: "string";
1049
+ readonly description: "Station ID where the vehicle must be returned, if applicable";
1050
+ };
1051
+ readonly isReserved: {
1052
+ readonly type: "boolean";
1053
+ readonly description: "true if the vehicle is currently reserved by a customer, false otherwise";
1054
+ };
1055
+ readonly isDisabled: {
1056
+ readonly type: "boolean";
1057
+ readonly description: "true if the vehicle is out of service, false otherwise";
1058
+ };
1059
+ readonly rentalUriAndroid: {
1060
+ readonly type: "string";
1061
+ readonly description: "Rental URI for Android (deep link to the specific vehicle)";
1062
+ };
1063
+ readonly rentalUriIOS: {
1064
+ readonly type: "string";
1065
+ readonly description: "Rental URI for iOS (deep link to the specific vehicle)";
1066
+ };
1067
+ readonly rentalUriWeb: {
1068
+ readonly type: "string";
1069
+ readonly description: "Rental URI for web (deep link to the specific vehicle)";
1070
+ };
1071
+ };
1072
+ };
1073
+ declare const RentalZoneSchema: {
1074
+ readonly type: "object";
1075
+ readonly required: readonly ["providerId", "providerGroupId", "z", "bbox", "area", "rules"];
1076
+ readonly properties: {
1077
+ readonly providerId: {
1078
+ readonly type: "string";
1079
+ readonly description: "Unique identifier of the rental provider";
1080
+ };
1081
+ readonly providerGroupId: {
1082
+ readonly type: "string";
1083
+ readonly description: "Unique identifier of the rental provider group";
1084
+ };
1085
+ readonly name: {
1086
+ readonly type: "string";
1087
+ readonly description: "Public name of the geofencing zone";
1088
+ };
1089
+ readonly z: {
1090
+ readonly type: "integer";
1091
+ readonly description: "Zone precedence / z-index (higher number = higher precedence)";
1092
+ };
1093
+ readonly bbox: {
1094
+ readonly type: "array";
1095
+ readonly description: "Bounding box of the area covered by this zone,\n[west, south, east, north] as [lon, lat, lon, lat]\n";
1096
+ readonly minItems: 4;
1097
+ readonly maxItems: 4;
1098
+ readonly items: {
1099
+ readonly type: "number";
1100
+ };
1101
+ };
1102
+ readonly area: {
1103
+ readonly $ref: "#/components/schemas/MultiPolygon";
1104
+ };
1105
+ readonly rules: {
1106
+ readonly type: "array";
1107
+ readonly items: {
1108
+ readonly $ref: "#/components/schemas/RentalZoneRestrictions";
1109
+ };
1110
+ };
1111
+ };
1112
+ };
706
1113
  declare const LegSchema: {
707
1114
  readonly type: "object";
708
1115
  readonly required: readonly ["mode", "startTime", "endTime", "scheduledStartTime", "scheduledEndTime", "realTime", "scheduled", "duration", "from", "to", "legGeometry"];
@@ -765,6 +1172,12 @@ declare const LegSchema: {
765
1172
  readonly description: "final stop of this trip (can differ from headsign)";
766
1173
  readonly $ref: "#/components/schemas/Place";
767
1174
  };
1175
+ readonly routeId: {
1176
+ readonly type: "string";
1177
+ };
1178
+ readonly directionId: {
1179
+ readonly type: "string";
1180
+ };
768
1181
  readonly routeColor: {
769
1182
  readonly type: "string";
770
1183
  };
@@ -1018,6 +1431,45 @@ declare const TransferSchema: {
1018
1431
  };
1019
1432
  };
1020
1433
  };
1434
+ declare const OneToManyParamsSchema: {
1435
+ readonly type: "object";
1436
+ readonly required: readonly ["one", "many", "mode", "max", "maxMatchingDistance", "elevationCosts", "arriveBy"];
1437
+ readonly properties: {
1438
+ readonly one: {
1439
+ readonly description: "geo location as latitude;longitude";
1440
+ readonly type: "string";
1441
+ };
1442
+ readonly many: {
1443
+ readonly description: "geo locations as latitude;longitude,latitude;longitude,...";
1444
+ readonly type: "array";
1445
+ readonly items: {
1446
+ readonly type: "string";
1447
+ };
1448
+ readonly explode: false;
1449
+ };
1450
+ readonly mode: {
1451
+ readonly description: "routing profile to use (currently supported: `WALK`, `BIKE`, `CAR`)\n";
1452
+ readonly $ref: "#/components/schemas/Mode";
1453
+ };
1454
+ readonly max: {
1455
+ readonly description: "maximum travel time in seconds";
1456
+ readonly type: "number";
1457
+ };
1458
+ readonly maxMatchingDistance: {
1459
+ readonly description: "maximum matching distance in meters to match geo coordinates to the street network";
1460
+ readonly type: "number";
1461
+ };
1462
+ readonly elevationCosts: {
1463
+ readonly description: "Optional. Default is `NONE`.\n\nSet an elevation cost profile, to penalize routes with incline.\n- `NONE`: No additional costs for elevations. This is the default behavior\n- `LOW`: Add a low cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if small detours are required.\n- `HIGH`: Add a high cost for increase in elevation and incline along the way. This will prefer routes with less ascent, if larger detours are required.\n\nAs using an elevation costs profile will increase the travel duration,\nrouting through steep terrain may exceed the maximal allowed duration,\ncausing a location to appear unreachable.\nIncreasing the maximum travel time for these segments may resolve this issue.\n\nElevation cost profiles are currently used by following street modes:\n- `BIKE`\n";
1464
+ readonly $ref: "#/components/schemas/ElevationCosts";
1465
+ readonly default: "NONE";
1466
+ };
1467
+ readonly arriveBy: {
1468
+ readonly description: "true = many to one\nfalse = one to many\n";
1469
+ readonly type: "boolean";
1470
+ };
1471
+ };
1472
+ };
1021
1473
  declare const ErrorSchema: {
1022
1474
  readonly type: "object";
1023
1475
  readonly properties: {
@@ -1027,4 +1479,4 @@ declare const ErrorSchema: {
1027
1479
  };
1028
1480
  };
1029
1481
 
1030
- export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalReturnConstraintSchema, RentalSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema };
1482
+ export { AlertCauseSchema, AlertEffectSchema, AlertSchema, AlertSeverityLevelSchema, AreaSchema, CyclingSpeedSchema, DirectionSchema, DurationSchema, ElevationCostsSchema, EncodedPolylineSchema, ErrorSchema, FareMediaSchema, FareMediaTypeSchema, FareProductSchema, FareTransferRuleSchema, FareTransferSchema, ItinerarySchema, LegSchema, LocationTypeSchema, MatchSchema, ModeSchema, MultiPolygonSchema, OneToManyParamsSchema, PedestrianProfileSchema, PedestrianSpeedSchema, PickupDropoffTypeSchema, PlaceSchema, ReachablePlaceSchema, ReachableSchema, RentalFormFactorSchema, RentalPropulsionTypeSchema, RentalProviderGroupSchema, RentalProviderSchema, RentalReturnConstraintSchema, RentalSchema, RentalStationSchema, RentalVehicleSchema, RentalVehicleTypeSchema, RentalZoneRestrictionsSchema, RentalZoneSchema, RiderCategorySchema, StepInstructionSchema, StopTimeSchema, TimeRangeSchema, TokenSchema, TransferSchema, TripInfoSchema, TripSegmentSchema, VertexTypeSchema };
@@ -20,6 +20,8 @@ import {
20
20
  LocationTypeSchema,
21
21
  MatchSchema,
22
22
  ModeSchema,
23
+ MultiPolygonSchema,
24
+ OneToManyParamsSchema,
23
25
  PedestrianProfileSchema,
24
26
  PedestrianSpeedSchema,
25
27
  PickupDropoffTypeSchema,
@@ -28,8 +30,15 @@ import {
28
30
  ReachableSchema,
29
31
  RentalFormFactorSchema,
30
32
  RentalPropulsionTypeSchema,
33
+ RentalProviderGroupSchema,
34
+ RentalProviderSchema,
31
35
  RentalReturnConstraintSchema,
32
36
  RentalSchema,
37
+ RentalStationSchema,
38
+ RentalVehicleSchema,
39
+ RentalVehicleTypeSchema,
40
+ RentalZoneRestrictionsSchema,
41
+ RentalZoneSchema,
33
42
  RiderCategorySchema,
34
43
  StepInstructionSchema,
35
44
  StopTimeSchema,
@@ -39,7 +48,7 @@ import {
39
48
  TripInfoSchema,
40
49
  TripSegmentSchema,
41
50
  VertexTypeSchema
42
- } from "./chunk-5QEG6DOF.js";
51
+ } from "./chunk-47ZS6OWZ.js";
43
52
  export {
44
53
  AlertCauseSchema,
45
54
  AlertEffectSchema,
@@ -62,6 +71,8 @@ export {
62
71
  LocationTypeSchema,
63
72
  MatchSchema,
64
73
  ModeSchema,
74
+ MultiPolygonSchema,
75
+ OneToManyParamsSchema,
65
76
  PedestrianProfileSchema,
66
77
  PedestrianSpeedSchema,
67
78
  PickupDropoffTypeSchema,
@@ -70,8 +81,15 @@ export {
70
81
  ReachableSchema,
71
82
  RentalFormFactorSchema,
72
83
  RentalPropulsionTypeSchema,
84
+ RentalProviderGroupSchema,
85
+ RentalProviderSchema,
73
86
  RentalReturnConstraintSchema,
74
87
  RentalSchema,
88
+ RentalStationSchema,
89
+ RentalVehicleSchema,
90
+ RentalVehicleTypeSchema,
91
+ RentalZoneRestrictionsSchema,
92
+ RentalZoneSchema,
75
93
  RiderCategorySchema,
76
94
  StepInstructionSchema,
77
95
  StopTimeSchema,
@@ -1,4 +1,4 @@
1
- import { PlanData, PlanResponse, Error, OneToManyData, OneToManyResponse, OneToAllData, Reachable, ReverseGeocodeData, ReverseGeocodeResponse, GeocodeData, GeocodeResponse, TripData, Itinerary, StoptimesData, StoptimesResponse, TripsData, TripsResponse, InitialResponse, StopsData, StopsResponse, LevelsData, LevelsResponse, TransfersData, TransfersResponse } from './types.gen.js';
1
+ import { PlanData, PlanResponse, Error, OneToManyData, OneToManyResponse, OneToAllData, Reachable, ReverseGeocodeData, ReverseGeocodeResponse, GeocodeData, GeocodeResponse, TripData, Itinerary, StoptimesData, StoptimesResponse, TripsData, TripsResponse, InitialResponse, StopsData, StopsResponse, LevelsData, LevelsResponse, RentalsData, RentalsResponse, TransfersData, TransfersResponse } from './types.gen.js';
2
2
  import * as _hey_api_client_fetch from '@hey-api/client-fetch';
3
3
  import { Options } from '@hey-api/client-fetch';
4
4
 
@@ -57,9 +57,29 @@ declare const stops: <ThrowOnError extends boolean = false>(options: Options<Sto
57
57
  * Get all available levels for a map section
58
58
  */
59
59
  declare const levels: <ThrowOnError extends boolean = false>(options: Options<LevelsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<LevelsResponse, Error, ThrowOnError>;
60
+ /**
61
+ * Get a list of rental providers or all rental stations and vehicles for
62
+ * a map section or provider
63
+ *
64
+ * If neither the map section (`min` and `max`) nor a provider filter
65
+ * (either `providerGroups` or `providers`) is provided, returns a list of
66
+ * all available rental providers, but no station, vehicle or zone data.
67
+ * Provide the `withProviders=false` parameter to retrieve only provider
68
+ * groups if detailed feed information is not required.
69
+ *
70
+ * Either the map section (`min` and `max`) or the provider filter
71
+ * (either `providerGroups` or `providers`)
72
+ * must be provided to retrieve station, vehicle and zone data.
73
+ *
74
+ * If only the map section is provided, all data in the area is returned.
75
+ * If only the provider filter is provided, all data for the given providers is returned.
76
+ * If both parameters are provided, only data for the given providers in the map section is returned.
77
+ *
78
+ */
79
+ declare const rentals: <ThrowOnError extends boolean = false>(options?: Options<RentalsData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<RentalsResponse, Error, ThrowOnError>;
60
80
  /**
61
81
  * Prints all transfers of a timetable location (track, bus stop, etc.)
62
82
  */
63
83
  declare const transfers: <ThrowOnError extends boolean = false>(options: Options<TransfersData, ThrowOnError>) => _hey_api_client_fetch.RequestResult<TransfersResponse, unknown, ThrowOnError>;
64
84
 
65
- export { client, geocode, initial, levels, oneToAll, oneToMany, plan, reverseGeocode, stops, stoptimes, transfers, trip, trips };
85
+ export { client, geocode, initial, levels, oneToAll, oneToMany, plan, rentals, reverseGeocode, stops, stoptimes, transfers, trip, trips };