@motis-project/motis-client 2.8.2 → 2.9.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.
@@ -141,7 +141,70 @@ var DurationSchema = {
141
141
  properties: {
142
142
  duration: {
143
143
  type: "number",
144
- description: "duration in seconds if a path was found, otherwise missing"
144
+ description: "duration in seconds if a path was found, otherwise missing",
145
+ minimum: 0
146
+ },
147
+ distance: {
148
+ type: "number",
149
+ description: "distance in meters if a path was found and distance computation was requested, otherwise missing",
150
+ minimum: 0
151
+ }
152
+ }
153
+ };
154
+ var ParetoSetEntrySchema = {
155
+ description: "Object containing a single element of a ParetoSet",
156
+ type: "object",
157
+ required: ["duration", "transfers"],
158
+ properties: {
159
+ duration: {
160
+ type: "number",
161
+ description: `duration in seconds for the the best solution using \`transfer\` transfers
162
+
163
+ Notice that the resolution is currently in minutes, because of implementation details
164
+ `,
165
+ minimum: 0
166
+ },
167
+ transfers: {
168
+ description: `The minimal number of transfers required to arrive within \`duration\` seconds
169
+
170
+ transfers=0: Direct transit connecion without any transfers
171
+ transfers=1: Transit connection with 1 transfer
172
+ `,
173
+ type: "integer",
174
+ minimum: 0
175
+ }
176
+ }
177
+ };
178
+ var ParetoSetSchema = {
179
+ description: "Pareto set of optimal transit solutions",
180
+ type: "array",
181
+ items: {
182
+ "$ref": "#/components/schemas/ParetoSetEntry"
183
+ }
184
+ };
185
+ var OneToManyIntermodalResponseSchema = {
186
+ description: "Object containing the optimal street and transit durations for One-to-Many routing",
187
+ type: "object",
188
+ properties: {
189
+ street_durations: {
190
+ description: `Fastest durations for street routing
191
+ The order of the items corresponds to the order of the \`many\` locations
192
+ If no street routed connection is found, the corresponding \`Duration\` will be empty
193
+ `,
194
+ type: "array",
195
+ items: {
196
+ "$ref": "#/components/schemas/Duration"
197
+ }
198
+ },
199
+ transit_durations: {
200
+ description: `Pareto optimal solutions
201
+ The order of the items corresponds to the order of the \`many\` locations
202
+ If no connection using transits is found, the corresponding \`ParetoSet\` will be empty
203
+ `,
204
+ type: "array",
205
+ items: {
206
+ "$ref": "#/components/schemas/ParetoSet"
207
+ }
145
208
  }
146
209
  }
147
210
  };
@@ -205,29 +268,29 @@ var ModeSchema = {
205
268
 
206
269
  # Transit modes
207
270
 
208
- - \`TRANSIT\`: translates to \`RAIL,TRAM,BUS,FERRY,AIRPLANE,COACH,CABLE_CAR,FUNICULAR,AREAL_LIFT,OTHER\`
271
+ - \`TRANSIT\`: translates to \`TRAM,FERRY,AIRPLANE,BUS,COACH,RAIL,ODM,FUNICULAR,AERIAL_LIFT,OTHER\`
209
272
  - \`TRAM\`: trams
210
273
  - \`SUBWAY\`: subway trains (Paris Metro, London Underground, but also NYC Subway, Hamburger Hochbahn, and other non-underground services)
211
274
  - \`FERRY\`: ferries
212
275
  - \`AIRPLANE\`: airline flights
213
276
  - \`BUS\`: short distance buses (does not include \`COACH\`)
214
277
  - \`COACH\`: long distance buses (does not include \`BUS\`)
215
- - \`RAIL\`: translates to \`HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,REGIONAL_FAST_RAIL,SUBURBAN,SUBWAY\`
216
- - \`SUBURBAN\`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)
278
+ - \`RAIL\`: translates to \`HIGHSPEED_RAIL,LONG_DISTANCE,NIGHT_RAIL,REGIONAL_RAIL,SUBURBAN,SUBWAY\`
217
279
  - \`HIGHSPEED_RAIL\`: long distance high speed trains (e.g. TGV)
218
280
  - \`LONG_DISTANCE\`: long distance inter city trains
219
281
  - \`NIGHT_RAIL\`: long distance night trains
220
- - \`REGIONAL_FAST_RAIL\`: regional express routes that skip low traffic stops to be faster
282
+ - \`REGIONAL_FAST_RAIL\`: deprecated, \`REGIONAL_RAIL\` will be used
221
283
  - \`REGIONAL_RAIL\`: regional train
284
+ - \`SUBURBAN\`: suburban trains (e.g. S-Bahn, RER, Elizabeth Line, ...)
285
+ - \`ODM\`: demand responsive transport
222
286
  - \`FUNICULAR\`: Funicular. Any rail system designed for steep inclines.
223
287
  - \`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.
224
- - \`ODM\`: demand responsive transport
225
288
  - \`AREAL_LIFT\`: deprecated
226
289
  - \`METRO\`: deprecated
227
290
  - \`CABLE_CAR\`: deprecated
228
291
  `,
229
292
  type: "string",
230
- enum: ["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"]
293
+ enum: ["WALK", "BIKE", "RENTAL", "CAR", "CAR_PARKING", "CAR_DROPOFF", "ODM", "RIDE_SHARING", "FLEX", "DEBUG_BUS_ROUTE", "DEBUG_RAILWAY_ROUTE", "DEBUG_FERRY_ROUTE", "TRANSIT", "TRAM", "SUBWAY", "FERRY", "AIRPLANE", "BUS", "COACH", "RAIL", "HIGHSPEED_RAIL", "LONG_DISTANCE", "NIGHT_RAIL", "REGIONAL_FAST_RAIL", "REGIONAL_RAIL", "SUBURBAN", "FUNICULAR", "AERIAL_LIFT", "OTHER", "AREAL_LIFT", "METRO", "CABLE_CAR"]
231
294
  };
232
295
  var MatchSchema = {
233
296
  description: "GeoCoding match",
@@ -562,6 +625,9 @@ For non-transit legs, null
562
625
  routeId: {
563
626
  type: "string"
564
627
  },
628
+ routeUrl: {
629
+ type: "string"
630
+ },
565
631
  directionId: {
566
632
  type: "string"
567
633
  },
@@ -1259,6 +1325,24 @@ var RentalZoneSchema = {
1259
1325
  }
1260
1326
  }
1261
1327
  };
1328
+ var CategorySchema = {
1329
+ type: "object",
1330
+ required: ["id", "name", "shortName"],
1331
+ description: `not available for GTFS datasets by default
1332
+ For NeTEx it contains information about the vehicle category, e.g. IC/InterCity
1333
+ `,
1334
+ properties: {
1335
+ id: {
1336
+ type: "string"
1337
+ },
1338
+ name: {
1339
+ type: "string"
1340
+ },
1341
+ shortName: {
1342
+ type: "string"
1343
+ }
1344
+ }
1345
+ };
1262
1346
  var LegSchema = {
1263
1347
  type: "object",
1264
1348
  required: ["mode", "startTime", "endTime", "scheduledStartTime", "scheduledEndTime", "realTime", "scheduled", "duration", "from", "to", "legGeometry"],
@@ -1341,9 +1425,15 @@ For non-transit legs, null
1341
1425
  description: "final stop of this trip (can differ from headsign)",
1342
1426
  "$ref": "#/components/schemas/Place"
1343
1427
  },
1428
+ category: {
1429
+ "$ref": "#/components/schemas/Category"
1430
+ },
1344
1431
  routeId: {
1345
1432
  type: "string"
1346
1433
  },
1434
+ routeUrl: {
1435
+ type: "string"
1436
+ },
1347
1437
  directionId: {
1348
1438
  type: "string"
1349
1439
  },
@@ -1398,11 +1488,16 @@ and the Place where the leg ends. For non-transit legs, null.
1398
1488
  }
1399
1489
  },
1400
1490
  legGeometry: {
1491
+ description: `Encoded geometry of the leg.
1492
+ If detailed leg output is disabled, this is returned as an empty
1493
+ polyline.
1494
+ `,
1401
1495
  "$ref": "#/components/schemas/EncodedPolyline"
1402
1496
  },
1403
1497
  steps: {
1404
1498
  description: `A series of turn by turn instructions
1405
1499
  used for walking, biking and driving.
1500
+ This field is omitted if the request disables detailed leg output.
1406
1501
  `,
1407
1502
  type: "array",
1408
1503
  items: {
@@ -1659,14 +1754,17 @@ transfer duration in minutes for the car profile
1659
1754
  };
1660
1755
  var OneToManyParamsSchema = {
1661
1756
  type: "object",
1662
- required: ["one", "many", "mode", "max", "maxMatchingDistance", "elevationCosts", "arriveBy"],
1757
+ required: ["one", "many", "mode", "max", "maxMatchingDistance", "arriveBy"],
1663
1758
  properties: {
1664
1759
  one: {
1665
1760
  description: "geo location as latitude;longitude",
1666
1761
  type: "string"
1667
1762
  },
1668
1763
  many: {
1669
- description: "geo locations as latitude;longitude,latitude;longitude,...",
1764
+ description: `geo locations as latitude;longitude,latitude;longitude,...
1765
+
1766
+ The number of accepted locations is limited by server config variable \`onetomany_max_many\`.
1767
+ `,
1670
1768
  type: "array",
1671
1769
  items: {
1672
1770
  type: "string"
@@ -1679,7 +1777,7 @@ var OneToManyParamsSchema = {
1679
1777
  "$ref": "#/components/schemas/Mode"
1680
1778
  },
1681
1779
  max: {
1682
- description: "maximum travel time in seconds",
1780
+ description: "maximum travel time in seconds. Is limited by server config variable `street_routing_max_direct_seconds`.",
1683
1781
  type: "number"
1684
1782
  },
1685
1783
  maxMatchingDistance: {
@@ -1710,13 +1808,287 @@ Elevation cost profiles are currently used by following street modes:
1710
1808
  false = one to many
1711
1809
  `,
1712
1810
  type: "boolean"
1811
+ },
1812
+ withDistance: {
1813
+ description: `If true, the response includes the distance in meters
1814
+ for each path. This requires path reconstruction and
1815
+ may be slower than duration-only queries.
1816
+ `,
1817
+ type: "boolean",
1818
+ default: false
1819
+ }
1820
+ }
1821
+ };
1822
+ var OneToManyIntermodalParamsSchema = {
1823
+ type: "object",
1824
+ required: ["one", "many"],
1825
+ properties: {
1826
+ one: {
1827
+ description: `\`latitude,longitude[,level]\` tuple with
1828
+ - latitude and longitude in degrees
1829
+ - (optional) level: the OSM level (default: 0)
1830
+
1831
+ OR
1832
+
1833
+ stop id
1834
+ `,
1835
+ type: "string"
1836
+ },
1837
+ many: {
1838
+ description: `array of:
1839
+
1840
+ \`latitude,longitude[,level]\` tuple with
1841
+ - latitude and longitude in degrees
1842
+ - (optional) level: the OSM level (default: 0)
1843
+
1844
+ OR
1845
+
1846
+ stop id
1847
+
1848
+ The number of accepted locations is limited by server config variable \`onetomany_max_many\`.
1849
+ `,
1850
+ type: "array",
1851
+ items: {
1852
+ type: "string"
1853
+ },
1854
+ explode: false
1855
+ },
1856
+ time: {
1857
+ description: `Optional. Defaults to the current time.
1858
+
1859
+ Departure time ($arriveBy=false) / arrival date ($arriveBy=true),
1860
+ `,
1861
+ type: "string",
1862
+ format: "date-time"
1863
+ },
1864
+ maxTravelTime: {
1865
+ description: `The maximum travel time in minutes.
1866
+ If not provided, the routing uses the value
1867
+ hardcoded in the server which is usually quite high.
1868
+
1869
+ *Warning*: Use with care. Setting this too low can lead to
1870
+ optimal (e.g. the least transfers) journeys not being found.
1871
+ If this value is too low to reach the destination at all,
1872
+ it can lead to slow routing performance.
1873
+ `,
1874
+ type: "integer"
1875
+ },
1876
+ maxMatchingDistance: {
1877
+ description: "maximum matching distance in meters to match geo coordinates to the street network",
1878
+ type: "number",
1879
+ default: 25
1880
+ },
1881
+ arriveBy: {
1882
+ description: `Optional. Defaults to false, i.e. one to many search
1883
+
1884
+ true = many to one
1885
+ false = one to many
1886
+ `,
1887
+ type: "boolean",
1888
+ default: false
1889
+ },
1890
+ maxTransfers: {
1891
+ description: `The maximum number of allowed transfers (i.e. interchanges between transit legs,
1892
+ pre- and postTransit do not count as transfers).
1893
+ \`maxTransfers=0\` searches for direct transit connections without any transfers.
1894
+ If you want to search only for non-transit connections (\`FOOT\`, \`CAR\`, etc.),
1895
+ send an empty \`transitModes\` parameter instead.
1896
+
1897
+ If not provided, the routing uses the server-side default value
1898
+ which is hardcoded and very high to cover all use cases.
1899
+
1900
+ *Warning*: Use with care. Setting this too low can lead to
1901
+ optimal (e.g. the fastest) journeys not being found.
1902
+ If this value is too low to reach the destination at all,
1903
+ it can lead to slow routing performance.
1904
+ `,
1905
+ type: "integer"
1906
+ },
1907
+ minTransferTime: {
1908
+ description: `Optional. Default is 0 minutes.
1909
+
1910
+ Minimum transfer time for each transfer in minutes.
1911
+ `,
1912
+ type: "integer",
1913
+ default: 0
1914
+ },
1915
+ additionalTransferTime: {
1916
+ description: `Optional. Default is 0 minutes.
1917
+
1918
+ Additional transfer time reserved for each transfer in minutes.
1919
+ `,
1920
+ type: "integer",
1921
+ default: 0
1922
+ },
1923
+ transferTimeFactor: {
1924
+ description: `Optional. Default is 1.0
1925
+
1926
+ Factor to multiply minimum required transfer times with.
1927
+ Values smaller than 1.0 are not supported.
1928
+ `,
1929
+ type: "number",
1930
+ default: 1
1931
+ },
1932
+ useRoutedTransfers: {
1933
+ description: `Optional. Default is \`false\`.
1934
+
1935
+ Whether to use transfers routed on OpenStreetMap data.
1936
+ `,
1937
+ type: "boolean",
1938
+ default: false
1939
+ },
1940
+ pedestrianProfile: {
1941
+ description: `Optional. Default is \`FOOT\`.
1942
+
1943
+ Accessibility profile to use for pedestrian routing in transfers
1944
+ between transit connections and the first and last mile respectively.
1945
+ `,
1946
+ "$ref": "#/components/schemas/PedestrianProfile",
1947
+ default: "FOOT"
1948
+ },
1949
+ pedestrianSpeed: {
1950
+ description: `Optional
1951
+
1952
+ Average speed for pedestrian routing.
1953
+ `,
1954
+ "$ref": "#/components/schemas/PedestrianSpeed"
1955
+ },
1956
+ cyclingSpeed: {
1957
+ description: `Optional
1958
+
1959
+ Average speed for bike routing.
1960
+ `,
1961
+ "$ref": "#/components/schemas/CyclingSpeed"
1962
+ },
1963
+ elevationCosts: {
1964
+ description: `Optional. Default is \`NONE\`.
1965
+
1966
+ Set an elevation cost profile, to penalize routes with incline.
1967
+ - \`NONE\`: No additional costs for elevations. This is the default behavior
1968
+ - \`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.
1969
+ - \`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.
1970
+
1971
+ As using an elevation costs profile will increase the travel duration,
1972
+ routing through steep terrain may exceed the maximal allowed duration,
1973
+ causing a location to appear unreachable.
1974
+ Increasing the maximum travel time for these segments may resolve this issue.
1975
+
1976
+ The profile is used for routing on both the first and last mile.
1977
+
1978
+ Elevation cost profiles are currently used by following street modes:
1979
+ - \`BIKE\`
1980
+ `,
1981
+ "$ref": "#/components/schemas/ElevationCosts",
1982
+ default: "NONE"
1983
+ },
1984
+ transitModes: {
1985
+ description: `Optional. Default is \`TRANSIT\` which allows all transit modes (no restriction).
1986
+ Allowed modes for the transit part. If empty, no transit connections will be computed.
1987
+ For example, this can be used to allow only \`SUBURBAN,SUBWAY,TRAM\`.
1988
+ `,
1989
+ type: "array",
1990
+ items: {
1991
+ "$ref": "#/components/schemas/Mode"
1992
+ },
1993
+ default: ["TRANSIT"],
1994
+ explode: false
1995
+ },
1996
+ preTransitModes: {
1997
+ description: `Optional. Default is \`WALK\`. Does not apply to direct connections (see \`directMode\`).
1998
+
1999
+ A list of modes that are allowed to be used for the first mile, i.e. from the coordinates to the first transit stop. Example: \`WALK,BIKE_SHARING\`.
2000
+ `,
2001
+ type: "array",
2002
+ items: {
2003
+ "$ref": "#/components/schemas/Mode"
2004
+ },
2005
+ default: ["WALK"],
2006
+ explode: false
2007
+ },
2008
+ postTransitModes: {
2009
+ description: `Optional. Default is \`WALK\`. Does not apply to direct connections (see \`directMode\`).
2010
+
2011
+ A list of modes that are allowed to be used for the last mile, i.e. from the last transit stop to the target coordinates. Example: \`WALK,BIKE_SHARING\`.
2012
+ `,
2013
+ type: "array",
2014
+ items: {
2015
+ "$ref": "#/components/schemas/Mode"
2016
+ },
2017
+ default: ["WALK"],
2018
+ explode: false
2019
+ },
2020
+ directMode: {
2021
+ description: `Default is \`WALK\` which will compute walking routes as direct connections.
2022
+
2023
+ Mode used for direction connections from start to destination without using transit.
2024
+
2025
+ Currently supported non-transit modes: \`WALK\`, \`BIKE\`, \`CAR\`
2026
+ `,
2027
+ "$ref": "#/components/schemas/Mode",
2028
+ default: "WALK"
2029
+ },
2030
+ maxPreTransitTime: {
2031
+ description: `Optional. Default is 15min which is \`900\`.
2032
+ Maximum time in seconds for the first street leg.
2033
+ Is limited by server config variable \`street_routing_max_prepost_transit_seconds\`.
2034
+ `,
2035
+ type: "integer",
2036
+ default: 900,
2037
+ minimum: 0
2038
+ },
2039
+ maxPostTransitTime: {
2040
+ description: `Optional. Default is 15min which is \`900\`.
2041
+ Maximum time in seconds for the last street leg.
2042
+ Is limited by server config variable \`street_routing_max_prepost_transit_seconds\`.
2043
+ `,
2044
+ type: "integer",
2045
+ default: 900,
2046
+ minimum: 0
2047
+ },
2048
+ maxDirectTime: {
2049
+ description: `Optional. Default is 30min which is \`1800\`.
2050
+ Maximum time in seconds for direct connections.
2051
+
2052
+ If a value smaller than either \`maxPreTransitTime\` or
2053
+ \`maxPostTransitTime\` is used, their maximum is set instead.
2054
+ Is limited by server config variable \`street_routing_max_direct_seconds\`.
2055
+ `,
2056
+ type: "integer",
2057
+ default: 1800,
2058
+ minimum: 0
2059
+ },
2060
+ withDistance: {
2061
+ description: `If true, the response includes the distance in meters
2062
+ for each path. This requires path reconstruction and
2063
+ may be slower than duration-only queries.
2064
+
2065
+ \`withDistance\` is currently limited to street routing.
2066
+ `,
2067
+ type: "boolean",
2068
+ default: false
2069
+ },
2070
+ requireBikeTransport: {
2071
+ description: `Optional. Default is \`false\`.
2072
+
2073
+ If set to \`true\`, all used transit trips are required to allow bike carriage.
2074
+ `,
2075
+ type: "boolean",
2076
+ default: false
2077
+ },
2078
+ requireCarTransport: {
2079
+ description: `Optional. Default is \`false\`.
2080
+
2081
+ If set to \`true\`, all used transit trips are required to allow car carriage.
2082
+ `,
2083
+ type: "boolean",
2084
+ default: false
1713
2085
  }
1714
2086
  }
1715
2087
  };
1716
2088
  var ServerConfigSchema = {
1717
2089
  Description: "server configuration",
1718
2090
  type: "object",
1719
- required: ["hasElevation", "hasRoutedTransfers", "hasStreetRouting", "maxTravelTimeLimit", "maxPrePostTransitTimeLimit", "maxDirectTimeLimit"],
2091
+ required: ["hasElevation", "hasRoutedTransfers", "hasStreetRouting", "maxOneToManySize", "maxOneToAllTravelTimeLimit", "maxPrePostTransitTimeLimit", "maxDirectTimeLimit", "shapesDebugEnabled"],
1720
2092
  properties: {
1721
2093
  hasElevation: {
1722
2094
  description: "true if elevation is loaded",
@@ -1730,6 +2102,11 @@ var ServerConfigSchema = {
1730
2102
  description: "true if street routing is available",
1731
2103
  type: "boolean"
1732
2104
  },
2105
+ maxOneToManySize: {
2106
+ description: `limit for the number of \`many\` locations for one-to-many requests
2107
+ `,
2108
+ type: "number"
2109
+ },
1733
2110
  maxOneToAllTravelTimeLimit: {
1734
2111
  description: "limit for maxTravelTime API param in minutes",
1735
2112
  type: "number"
@@ -1741,6 +2118,10 @@ var ServerConfigSchema = {
1741
2118
  maxDirectTimeLimit: {
1742
2119
  description: "limit for maxDirectTime API param in seconds",
1743
2120
  type: "number"
2121
+ },
2122
+ shapesDebugEnabled: {
2123
+ description: "true if experimental route shapes debug download API is enabled",
2124
+ type: "boolean"
1744
2125
  }
1745
2126
  }
1746
2127
  };
@@ -1754,6 +2135,119 @@ var ErrorSchema = {
1754
2135
  }
1755
2136
  }
1756
2137
  };
2138
+ var RouteSegmentSchema = {
2139
+ description: "Route segment between two stops to show a route on a map",
2140
+ type: "object",
2141
+ required: ["from", "to", "polyline"],
2142
+ properties: {
2143
+ from: {
2144
+ type: "integer",
2145
+ description: "Index into the top-level route stops array"
2146
+ },
2147
+ to: {
2148
+ type: "integer",
2149
+ description: "Index into the top-level route stops array"
2150
+ },
2151
+ polyline: {
2152
+ type: "integer",
2153
+ description: "Index into the top-level route polylines array"
2154
+ }
2155
+ }
2156
+ };
2157
+ var RoutePolylineSchema = {
2158
+ description: "Shared polyline used by one or more route segments",
2159
+ type: "object",
2160
+ required: ["polyline", "colors", "routeIndexes"],
2161
+ properties: {
2162
+ polyline: {
2163
+ "$ref": "#/components/schemas/EncodedPolyline"
2164
+ },
2165
+ colors: {
2166
+ type: "array",
2167
+ description: "Unique route colors of routes containing this segment",
2168
+ items: {
2169
+ type: "string"
2170
+ }
2171
+ },
2172
+ routeIndexes: {
2173
+ type: "array",
2174
+ description: "Indexes into the top-level routes array for routes containing this segment",
2175
+ items: {
2176
+ type: "integer"
2177
+ }
2178
+ }
2179
+ }
2180
+ };
2181
+ var RouteColorSchema = {
2182
+ type: "object",
2183
+ required: ["color", "textColor"],
2184
+ properties: {
2185
+ color: {
2186
+ type: "string"
2187
+ },
2188
+ textColor: {
2189
+ type: "string"
2190
+ }
2191
+ }
2192
+ };
2193
+ var RoutePathSourceSchema = {
2194
+ type: "string",
2195
+ enum: ["NONE", "TIMETABLE", "ROUTED"]
2196
+ };
2197
+ var TransitRouteInfoSchema = {
2198
+ type: "object",
2199
+ required: ["id", "shortName", "longName"],
2200
+ properties: {
2201
+ id: {
2202
+ type: "string"
2203
+ },
2204
+ shortName: {
2205
+ type: "string"
2206
+ },
2207
+ longName: {
2208
+ type: "string"
2209
+ },
2210
+ color: {
2211
+ type: "string"
2212
+ },
2213
+ textColor: {
2214
+ type: "string"
2215
+ }
2216
+ }
2217
+ };
2218
+ var RouteInfoSchema = {
2219
+ type: "object",
2220
+ required: ["mode", "transitRoutes", "numStops", "routeIdx", "pathSource", "segments"],
2221
+ properties: {
2222
+ mode: {
2223
+ "$ref": "#/components/schemas/Mode",
2224
+ description: "Transport mode for this route"
2225
+ },
2226
+ transitRoutes: {
2227
+ type: "array",
2228
+ items: {
2229
+ "$ref": "#/components/schemas/TransitRouteInfo"
2230
+ }
2231
+ },
2232
+ numStops: {
2233
+ type: "integer",
2234
+ description: "Number of stops along this route"
2235
+ },
2236
+ routeIdx: {
2237
+ type: "integer",
2238
+ description: "Internal route index for debugging purposes"
2239
+ },
2240
+ pathSource: {
2241
+ "$ref": "#/components/schemas/RoutePathSource"
2242
+ },
2243
+ segments: {
2244
+ type: "array",
2245
+ items: {
2246
+ "$ref": "#/components/schemas/RouteSegment"
2247
+ }
2248
+ }
2249
+ }
2250
+ };
1757
2251
 
1758
2252
  export {
1759
2253
  AlertCauseSchema,
@@ -1762,6 +2256,9 @@ export {
1762
2256
  TimeRangeSchema,
1763
2257
  AlertSchema,
1764
2258
  DurationSchema,
2259
+ ParetoSetEntrySchema,
2260
+ ParetoSetSchema,
2261
+ OneToManyIntermodalResponseSchema,
1765
2262
  AreaSchema,
1766
2263
  TokenSchema,
1767
2264
  LocationTypeSchema,
@@ -1794,6 +2291,7 @@ export {
1794
2291
  RentalStationSchema,
1795
2292
  RentalVehicleSchema,
1796
2293
  RentalZoneSchema,
2294
+ CategorySchema,
1797
2295
  LegSchema,
1798
2296
  RiderCategorySchema,
1799
2297
  FareMediaTypeSchema,
@@ -1804,6 +2302,13 @@ export {
1804
2302
  ItinerarySchema,
1805
2303
  TransferSchema,
1806
2304
  OneToManyParamsSchema,
2305
+ OneToManyIntermodalParamsSchema,
1807
2306
  ServerConfigSchema,
1808
- ErrorSchema
2307
+ ErrorSchema,
2308
+ RouteSegmentSchema,
2309
+ RoutePolylineSchema,
2310
+ RouteColorSchema,
2311
+ RoutePathSourceSchema,
2312
+ TransitRouteInfoSchema,
2313
+ RouteInfoSchema
1809
2314
  };