@iwpnd/valhalla-ts 1.0.1 → 1.0.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.
@@ -1,4 +1,10 @@
1
1
  export type StringBool = 'true' | 'false';
2
+ /**
3
+ * 0 - current departure time
4
+ * 1 - specified departure time
5
+ * 2 - specified arrival time
6
+ * 3 - invariant time
7
+ */
2
8
  export type DateTimeType = 0 | 1 | 2 | 3;
3
9
  export type DateTimeValue = string;
4
10
  export type DateTime = {
@@ -1 +1 @@
1
- {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/types/base.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AAQ1C,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,YAAY,CAAC;IAEnB,KAAK,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,EAAE,EAAE,CAAC;AAE1C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,CAAC;AAEvE,MAAM,MAAM,UAAU,GAChB,OAAO,GACP,YAAY,GACZ,SAAS,GACT,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,MAAM,UAAU,GAChB,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,GACP,WAAW,GACX,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,MAAM,eAAe,GACrB,YAAY,GACZ,qBAAqB,GACrB,uBAAuB,CAAC"}
1
+ {"version":3,"file":"base.d.ts","sourceRoot":"","sources":["../../src/types/base.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,UAAU,GAAG,MAAM,GAAG,OAAO,CAAC;AAE1C;;;;;GAKG;AACH,MAAM,MAAM,YAAY,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;AACzC,MAAM,MAAM,aAAa,GAAG,MAAM,CAAC;AAEnC,MAAM,MAAM,QAAQ,GAAG;IACnB,IAAI,EAAE,YAAY,CAAC;IAEnB,KAAK,EAAE,aAAa,CAAC;CACxB,CAAC;AAEF,MAAM,MAAM,gBAAgB,GAAG,MAAM,EAAE,EAAE,CAAC;AAE1C,MAAM,MAAM,cAAc,GAAG,MAAM,GAAG,WAAW,GAAG,cAAc,CAAC;AAEnE,MAAM,MAAM,eAAe,GAAG,OAAO,GAAG,YAAY,GAAG,IAAI,GAAG,IAAI,CAAC;AAEnE,MAAM,MAAM,cAAc,GAAG,WAAW,GAAG,UAAU,GAAG,cAAc,CAAC;AAEvE,MAAM,MAAM,UAAU,GAChB,OAAO,GACP,YAAY,GACZ,SAAS,GACT,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,MAAM,UAAU,GAChB,KAAK,GACL,MAAM,GACN,MAAM,GACN,MAAM,GACN,OAAO,GACP,MAAM,GACN,KAAK,GACL,OAAO,GACP,WAAW,GACX,SAAS,GACT,WAAW,CAAC;AAElB,MAAM,MAAM,eAAe,GACrB,YAAY,GACZ,qBAAqB,GACrB,uBAAuB,CAAC"}
@@ -2,7 +2,18 @@ import { StringBool } from './base';
2
2
  /**
3
3
  * Costing Models used in routing
4
4
  */
5
- export type CostingModels = 'pedestrian' | 'bicycle' | 'auto' | 'bus' | 'bikeshare' | 'truck' | 'taxi' | 'motor_scooter' | 'motorcycle' | 'multimodal';
5
+ export declare enum CostingModels {
6
+ PEDESTRIAN = "pedestrian",
7
+ BICYCLE = "bicycle",
8
+ AUTO = "auto",
9
+ BUS = "bus",
10
+ TRUCK = "truck",
11
+ TAXI = "taxi",
12
+ MOTORSCOOTER = "motor_scooter",
13
+ MOTORCYCLE = "motorcycle",
14
+ BIKESHARE = "bikeshare",
15
+ MULTIMODAL = "multimodal"
16
+ }
6
17
  /**
7
18
  * Automobile costing options that can be used during routing.
8
19
  */
@@ -100,41 +111,225 @@ export interface BaseMotorizedVehicleCostingOptions {
100
111
  * are not guaranteed to avoid tracks entirely.
101
112
  */
102
113
  use_tracks?: number;
114
+ /**
115
+ * A penalty applied for transition to generic service road.
116
+ * The default penalty is 0 trucks and 15 for cars, buses, motor scooters and motorcycles.
117
+ */
103
118
  service_penalty?: number;
119
+ /**
120
+ * A factor that modifies (multiplies) the cost when generic service roads are encountered.
121
+ * The default service_factor is 1.
122
+ */
104
123
  service_factor?: number;
124
+ /**
125
+ * A cost applied when encountering an international border.
126
+ * This cost is added to the estimated and elapsed times.
127
+ * The default cost is 600 seconds.
128
+ */
105
129
  country_crossing_cost?: number;
130
+ /**
131
+ * A penalty applied for a country crossing.
132
+ * This penalty can be used to create paths that avoid spanning country boundaries.
133
+ * The default penalty is 0.
134
+ */
106
135
  country_crossing_penalty?: number;
136
+ /**
137
+ * Changes the metric to quasi-shortest, i.e. purely distance-based costing.
138
+ *
139
+ * Note, this will disable all other costings & penalties.
140
+ * Also note, shortest will not disable hierarchy pruning,
141
+ * leading to potentially sub-optimal routes for some costing models.
142
+ *
143
+ * The default is false.
144
+ */
107
145
  shortest?: StringBool;
146
+ /**
147
+ * Top speed the vehicle can go.
148
+ * Also used to avoid roads with higher speeds than this value.
149
+ * top_speed must be between 10 and 252 KPH.
150
+ * The default value is 140 KPH.
151
+ */
108
152
  top_speed?: number;
153
+ /**
154
+ * Fixed speed the vehicle can go.
155
+ * Used to override the calculated speed.
156
+ * Can be useful if speed of vehicle is known.
157
+ * fixed_speed must be between 1 and 252 KPH.
158
+ * The default value is 0 KPH which disables fixed speed and falls back
159
+ * to the standard calculated speed based on the road attribution.
160
+ */
109
161
  fixed_speed?: number;
162
+ /**
163
+ * If set to true, ignores all closures, marked due to live traffic closures, during routing.
164
+ * Note: This option cannot be set if location.search_filter.exclude_closures is also specified
165
+ * in the request and will return an error if it is
166
+ */
110
167
  ignore_closures?: StringBool;
168
+ /**
169
+ * A factor that penalizes the cost when traversing a closed edge
170
+ * Its value can range from 1.0 - don't penalize closed edges,
171
+ * to 10.0 - apply high cost penalty to closed edges.
172
+ *
173
+ * Default value is 9.0.
174
+ *
175
+ * Note: This factor is applicable only for motorized modes of transport, i.e auto, motorcycle, motor_scooter, bus, truck & taxi.
176
+ */
111
177
  closure_factor?: number;
112
178
  }
179
+ /**
180
+ * MotorizedVehicleCostingOptions are available for auto, bus, taxi
181
+ */
113
182
  export interface MotorizedVehicleCostingOptions extends BaseMotorizedVehicleCostingOptions {
183
+ /**
184
+ * The height of the vehicle (in meters).
185
+ * Default 1.9 for car, bus, taxi and 4.11 for truck.
186
+ */
114
187
  height?: number;
188
+ /**
189
+ * The width of the vehicle (in meters).
190
+ * Default 1.6 for car, bus, taxi and 2.6 for truck.
191
+ */
115
192
  width?: number;
193
+ /**
194
+ * This value indicates whether or not the path may include unpaved roads.
195
+ * If exclude_unpaved is set to 1 it is allowed to start and end with unpaved roads,
196
+ * but is not allowed to have them in the middle of the route path,
197
+ * otherwise they are allowed.
198
+ * Default false.
199
+ */
116
200
  exclude_unpaved?: 1 | 'false';
201
+ /**
202
+ * A boolean value which indicates the desire to avoid routes with cash-only tolls.
203
+ * Default false.
204
+ */
117
205
  exclude_cash_only_tolls?: StringBool;
206
+ /**
207
+ * A boolean value which indicates the desire to include HOV roads with a
208
+ * 2-occupant requirement in the route when advantageous.
209
+ *
210
+ * Default false.
211
+ */
118
212
  include_hov2?: StringBool;
213
+ /**
214
+ * A boolean value which indicates the desire to include HOV roads with a
215
+ * 3-occupant requirement in the route when advantageous.
216
+ *
217
+ * Default false.
218
+ */
119
219
  include_hov3?: StringBool;
220
+ /**
221
+ * A boolean value which indicates the desire to include tolled HOV roads
222
+ * which require the driver to pay a toll if the occupant requirement isn't met.
223
+ *
224
+ * Default false.
225
+ */
120
226
  include_hot?: StringBool;
121
227
  }
228
+ /**
229
+ * TruckCostingOptions are only available for truck
230
+ */
122
231
  export interface TruckCostingOptions extends MotorizedVehicleCostingOptions {
232
+ /**
233
+ * The length of the truck (in meters).
234
+ * Default 21.64.
235
+ */
123
236
  length?: number;
237
+ /**
238
+ * The weight of the truck (in tons).
239
+ * Default 9.07.
240
+ */
124
241
  weight?: number;
242
+ /**
243
+ * The axle load of the truck (in metric tons).
244
+ * Default 9.07.
245
+ */
125
246
  axle_load?: number;
247
+ /**
248
+ * The axle count of the truck .
249
+ * Default 5.
250
+ */
126
251
  axle_count?: number;
252
+ /**
253
+ * A value indicating if the truck is carrying hazardous materials.
254
+ * Default false.
255
+ */
127
256
  hazmat?: StringBool;
128
257
  }
258
+ /**
259
+ * PedestrianCostingOptions
260
+ */
129
261
  export interface PedestrianCostingOptions {
262
+ /**
263
+ * Walking speed in kilometers per hour (km/h). Must be between 0.5km/h and 25km/h
264
+ *
265
+ * Default value is 5.1 km/h
266
+ */
130
267
  walking_speed?: number;
268
+ /**
269
+ * Factor to modify the cost when encountering a road classified as footway.
270
+ * Pedestrian routing will generally prefer sidwalks and footpath over other roads.
271
+ *
272
+ * The Default value is 1.
273
+ */
131
274
  walkway_factor?: number;
275
+ /**
276
+ * Factor to modify the cost when encountering roads with dedicated sidewalks.
277
+ *
278
+ * The Default value is 1
279
+ */
132
280
  sidewalk_factor?: number;
281
+ /**
282
+ * Factor to modify (multiply) the cost when encountering alleys. Pedestrian routing wants to
283
+ * generally dis-favor alleys and narrow buildings between houses.
284
+ *
285
+ * The Default value is 2.0
286
+ */
133
287
  alley_factor?: number;
288
+ /**
289
+ * Factor to modify (multiply) the cost when encountering driveways.
290
+ * Pedestrian routing will try to avoid them.
291
+ *
292
+ * The Default value is 5.0
293
+ */
134
294
  driveway_factor?: number;
295
+ /**
296
+ * A penalty added to each path with steps or stairs.
297
+ *
298
+ * The Default value is 2.0
299
+ */
135
300
  step_penalty?: number;
301
+ /**
302
+ * A pedestrians's desire to tackle hills in their routes.
303
+ * This is a range of values from 0 to 1,
304
+ * where 0 attempts to avoid hills and steep grades even if it means a longer (time and distance) path,
305
+ * while 1 indicates the rider does not fear hills and steeper grades.
306
+ *
307
+ * The default value is 0.5
308
+ */
136
309
  use_hills?: number;
310
+ /**
311
+ * This value indicates the willingness to take ferries.
312
+ * This is a range of values between 0 and 1.
313
+ * Values near 0 attempt to avoid ferries and values near 1 will favor ferries.
314
+ *
315
+ * Note that sometimes ferries are required to complete a route so values of 0
316
+ * are not guaranteed to avoid ferries entirely.
317
+ *
318
+ * The default value is 0.5.
319
+ */
137
320
  use_ferry?: number;
321
+ /**
322
+ * This value indicates the willingness to take living streets.
323
+ * This is a range of values between 0 and 1.
324
+ *
325
+ * Values near 0 attempt to avoid living streets and
326
+ * values from 0.5 to 1 will currently have no effect on route selection.
327
+ *
328
+ * The default value is 0.5.
329
+ *
330
+ * Note that sometimes living streets are required to complete a route so values of 0
331
+ * are not guaranteed to avoid living streets entirely.
332
+ */
138
333
  use_living_streets?: number;
139
334
  /**
140
335
  * This value indicates the willingness to take track roads.
@@ -146,24 +341,153 @@ export interface PedestrianCostingOptions {
146
341
  * are not guaranteed to avoid tracks entirely.
147
342
  */
148
343
  use_tracks?: number;
344
+ /**
345
+ * A penalty applied for transition to generic service road.
346
+ * The default penalty is 0 trucks and 15 for cars, buses, motor scooters and motorcycles.
347
+ */
149
348
  service_penalty?: number;
349
+ /**
350
+ * A factor that modifies (multiplies) the cost when generic service roads are encountered.
351
+ * The default service_factor is 1.
352
+ */
150
353
  service_factor?: number;
354
+ /**
355
+ * This value indicates the maximum difficulty of hiking trails that is allowed.
356
+ *
357
+ * Values between 0 and 6 are allowed.
358
+ *
359
+ * The values correspond to sac_scale values within OpenStreetMap,
360
+ * see [here](https://wiki.openstreetmap.org/wiki/Key:sac_scale)
361
+ *
362
+ * The Default value is 1 which means that well cleared trails that are mostly flat or slightly sloped are allowed.
363
+ * Higher difficulty trails can be allowed by specifying a higher value for max_hiking_difficulty.
364
+ */
151
365
  max_hiking_difficulty?: number;
366
+ /**
367
+ * BSS = Bikeshare scheme
368
+ * This value is useful when bikeshare is chosen as travel mode.
369
+ * It is meant to give the time will be used to return a rental bike.
370
+ * This value will be displayed in the final directions and used to
371
+ * calculate the whole duation.
372
+ *
373
+ * The default value is 120 seconds.
374
+ */
152
375
  bss_return_cost?: number;
376
+ /**
377
+ * This value is useful when bikeshare is chosen as travel mode.
378
+ *
379
+ * It is meant to describe the potential effort to return a rental bike.
380
+ * This value won't be displayed and used only inside of the algorithm.
381
+ */
153
382
  bss_return_penalty?: number;
383
+ /**
384
+ * Changes the metric to quasi-shortest, i.e. purely distance-based costing.
385
+ *
386
+ * Note, this will disable all other costings & penalties.
387
+ * Also note, shortest will not disable hierarchy pruning, leading to
388
+ * potentially sub-optimal routes for some costing models.
389
+ *
390
+ * The default is false.
391
+ */
154
392
  shortest?: boolean;
155
393
  }
156
394
  export type BiycleType = 'Hybrid' | 'City' | 'Road' | 'Cross' | 'Mountain';
395
+ /**
396
+ * BiycleCostingOptions
397
+ */
157
398
  export interface BicycleCostingOptions {
399
+ /**
400
+ * type of bicycle
401
+ */
158
402
  bicycle_type?: BiycleType;
403
+ /**
404
+ * Cycling speed is the average travel speed along smooth, flat roads.
405
+ *
406
+ * When no speed is specifically provided, the default speed is determined by the bicycle type and are as follows:
407
+ * Road = 25 KPH (15.5 MPH),
408
+ * Cross = 20 KPH (13 MPH),
409
+ * Hybrid/City = 18 KPH (11.5 MPH),
410
+ * and Mountain = 16 KPH (10 MPH).
411
+ */
159
412
  cycling_speed?: number;
413
+ /**
414
+ * A cyclist's propensity to use roads alongside other vehicles.
415
+ * This is a range of values from 0 to 1, where 0 attempts to avoid roads and stay on cycleways and paths,
416
+ * and 1 indicates the rider is more comfortable riding on roads.
417
+ * Based on the use_roads factor, roads with certain classifications
418
+ * and higher speeds are penalized in an attempt to avoid them when finding the best path.
419
+ *
420
+ * The default value is 0.5.
421
+ */
160
422
  use_roads?: number;
423
+ /**
424
+ * A cyclist's desire to tackle hills in their routes.
425
+ * This is a range of values from 0 to 1,
426
+ * where 0 attempts to avoid hills and steep grades even if it means a longer (time and distance) path,
427
+ * while 1 indicates the rider does not fear hills and steeper grades.
428
+ *
429
+ * The default value is 0.5
430
+ */
161
431
  use_hills?: number;
432
+ /**
433
+ * This value indicates the willingness to take ferries.
434
+ * This is a range of values between 0 and 1.
435
+ * Values near 0 attempt to avoid ferries and values near 1 will favor ferries.
436
+ *
437
+ * Note that sometimes ferries are required to complete a route so values of 0
438
+ * are not guaranteed to avoid ferries entirely.
439
+ *
440
+ * The default value is 0.5.
441
+ */
162
442
  use_ferry?: number;
443
+ /**
444
+ * This value indicates the willingness to take living streets.
445
+ * This is a range of values between 0 and 1.
446
+ *
447
+ * Values near 0 attempt to avoid living streets and
448
+ * values from 0.5 to 1 will currently have no effect on route selection.
449
+ *
450
+ * The default value is 0.5.
451
+ *
452
+ * Note that sometimes living streets are required to complete a route so values of 0
453
+ * are not guaranteed to avoid living streets entirely.
454
+ */
163
455
  use_living_streets?: number;
456
+ /**
457
+ * This value is meant to represent how much a cyclist wants to avoid
458
+ * roads with poor surfaces relative to the bicycle type being used.
459
+ *
460
+ * This is a range of values between 0 and 1.
461
+ * With 1 avoiding all bad surfaces, and 0 no penalization at all.
462
+ *
463
+ * The default value is 0.25.
464
+ */
164
465
  avoid_bad_surfaces?: number;
466
+ /**
467
+ * BSS = Bikeshare scheme
468
+ * This value is useful when bikeshare is chosen as travel mode.
469
+ * It is meant to give the time will be used to return a rental bike.
470
+ * This value will be displayed in the final directions and used to
471
+ * calculate the whole duation.
472
+ *
473
+ * The default value is 120 seconds.
474
+ */
165
475
  bss_return_cost?: number;
476
+ /**
477
+ * This value is useful when bikeshare is chosen as travel mode.
478
+ *
479
+ * It is meant to describe the potential effort to return a rental bike.
480
+ * This value won't be displayed and used only inside of the algorithm.
481
+ */
166
482
  bss_return_penalty?: number;
483
+ /**
484
+ * Changes the metric to quasi-shortest, i.e. purely distance-based costing.
485
+ *
486
+ * Note, this will disable all other costings & penalties.
487
+ * Also note, shortest will not disable hierarchy pruning, leading to potentially sub-optimal routes for some costing models.
488
+ *
489
+ * The default is false.
490
+ */
167
491
  shortest?: StringBool;
168
492
  /**
169
493
  * A penalty applied when transitioning between roads that do not have
@@ -184,15 +508,58 @@ export interface BicycleCostingOptions {
184
508
  * The default gate penalty is 300 seconds.
185
509
  */
186
510
  gate_penalty?: number;
511
+ /**
512
+ * A penalty applied for transition to generic service road.
513
+ * The default penalty is 0 trucks and 15 for cars, buses, motor scooters and motorcycles.
514
+ */
187
515
  service_penalty?: number;
516
+ /**
517
+ * A cost applied when encountering an international border.
518
+ * This cost is added to the estimated and elapsed times.
519
+ * The default cost is 600 seconds.
520
+ */
188
521
  country_crossing_cost?: number;
522
+ /**
523
+ * A penalty applied for a country crossing.
524
+ * This penalty can be used to create paths that avoid spanning country boundaries.
525
+ * The default penalty is 0.
526
+ */
189
527
  country_crossing_penalty?: number;
190
528
  }
529
+ /**
530
+ * MotorScooterCostingOptions
531
+ */
191
532
  export interface MotorScooterCostingOptions extends MotorizedVehicleCostingOptions {
533
+ /**
534
+ * Top speed the motorized scooter can go.
535
+ * Used to avoid roads with higher speeds than this value.
536
+ * For motor_scooter this value must be between 20 and 120 KPH.
537
+ *
538
+ * The default value is 45 KPH (~28 MPH)
539
+ */
192
540
  top_speed?: number;
541
+ /**
542
+ * A riders's willingness to use primary roads.
543
+ * This is a range of values from 0 to 1, where
544
+ * 0 attempts to avoid primary roads, and
545
+ * 1 indicates the rider is more comfortable riding on primary roads.
546
+ *
547
+ * The default value is 0.5
548
+ */
193
549
  use_primary?: number;
550
+ /**
551
+ * A scooter drivers desire to tackle hills in their routes.
552
+ * This is a range of values from 0 to 1,
553
+ * where 0 attempts to avoid hills and steep grades even if it means a longer (time and distance) path,
554
+ * while 1 indicates the rider does not fear hills and steeper grades.
555
+ *
556
+ * The default value is 0.5
557
+ */
194
558
  use_hills?: number;
195
559
  }
560
+ /**
561
+ * MotorcycleCostingOptions
562
+ */
196
563
  export interface MotorcycleCostingOptions extends MotorScooterCostingOptions {
197
564
  /**
198
565
  * This value indicates the willingness to take highways.
@@ -204,18 +571,63 @@ export interface MotorcycleCostingOptions extends MotorScooterCostingOptions {
204
571
  * are not guaranteed to avoid highways entirely.
205
572
  */
206
573
  use_highways?: number;
574
+ /**
575
+ * A riders's desire for adventure in their routes.
576
+ * This is a range of values from 0 to 1, where
577
+ *
578
+ * 0 will avoid trails, tracks, unclassified or bad surfaces and
579
+ * values towards 1 will tend to avoid major roads and route on secondary roads.
580
+ *
581
+ * The default value is 0.0.
582
+ */
207
583
  use_trial?: number;
208
584
  }
209
585
  export type TransitCostingFilter = {
210
586
  ids: string[];
211
587
  action: 'exclude' | 'include';
212
588
  };
589
+ /**
590
+ * TransitCostingOptions
591
+ */
213
592
  export interface TransitCostingOptions {
593
+ /**
594
+ * User's desire to use buses.
595
+ * Range of values from 0 (try to avoid buses) to
596
+ * 1 (strong preference for riding buses).
597
+ */
214
598
  use_bus?: number;
599
+ /**
600
+ * User's desire to use rail/subway/metro.
601
+ * Range of values from 0 (try to avoid rail) to
602
+ * 1 (strong preference for riding rail).
603
+ */
215
604
  use_rail?: number;
605
+ /**
606
+ * User's desire to favor transfers.
607
+ * Range of values from 0 (try to avoid transfers) to
608
+ * 1 (totally comfortable with transfers).
609
+ */
216
610
  use_transfers?: number;
611
+ /**
612
+ * This is the maximum accepted walking distance at the beginning or end of a route for
613
+ * a pedestrian.
614
+ *
615
+ * The Default value is 2145 meters
616
+ */
217
617
  transit_start_end_max_distance?: number;
618
+ /**
619
+ * Maximum accepted walking distances in transfers
620
+ *
621
+ * The Default value is 800 meters
622
+ */
218
623
  transit_transfer_max_distance?: number;
624
+ /**
625
+ * A way to filter for one or more stops, routes, or operators.
626
+ * Filters must contain a list of Onestop IDs,
627
+ * which is a unique identifier for Transitland data, and an action.
628
+ *
629
+ * Example: [{"action": "exclude", ids: ["o-9q9-bart"]}]
630
+ */
219
631
  filters?: TransitCostingFilter[];
220
632
  }
221
633
  export type CostingOptions = {
@@ -1 +1 @@
1
- {"version":3,"file":"costing.d.ts","sourceRoot":"","sources":["../../src/types/costing.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,aAAa,GACnB,YAAY,GACZ,SAAS,GACT,MAAM,GACN,KAAK,GACL,WAAW,GACX,OAAO,GACP,MAAM,GACN,eAAe,GACf,YAAY,GACZ,YAAY,CAAC;AAEnB;;GAEG;AACH,MAAM,WAAW,kCAAkC;IAC/C;;;;;;OAMG;IACH,gBAAgB,CAAC,EAAE,MAAM,CAAC;IAC1B;;;;OAIG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;OAGG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;OAGG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;IAChC;;;;OAIG;IACH,eAAe,CAAC,EAAE,MAAM,CAAC;IACzB;;;;OAIG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;OAIG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;;OASG;IACH,YAAY,CAAC,EAAE,MAAM,CAAC;IACtB;;;;;;;;OAQG;IACH,SAAS,CAAC,EAAE,MAAM,CAAC;IACnB;;;;;;;;OAQG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;;;;OAQG;IACH,UAAU,CAAC,EAAE,MAAM,CAAC;IAKpB,eAAe,CAAC,EAAE,MAAM,CAAC;IAKzB,cAAc,CAAC,EAAE,MAAM,CAAC;IAMxB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C5B,UAAU,CAAC,EAAE,wBAAwB,CAAC;IACtC,aAAa,CAAC,EAAE,0BAA0B,CAAC;IAC3C,UAAU,CAAC,EAAE,qBAAqB,CAAC;CACtC,CAAC"}
@@ -1,3 +1,20 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.CostingModels = void 0;
4
+ /**
5
+ * Costing Models used in routing
6
+ */
7
+ var CostingModels;
8
+ (function (CostingModels) {
9
+ CostingModels["PEDESTRIAN"] = "pedestrian";
10
+ CostingModels["BICYCLE"] = "bicycle";
11
+ CostingModels["AUTO"] = "auto";
12
+ CostingModels["BUS"] = "bus";
13
+ CostingModels["TRUCK"] = "truck";
14
+ CostingModels["TAXI"] = "taxi";
15
+ CostingModels["MOTORSCOOTER"] = "motor_scooter";
16
+ CostingModels["MOTORCYCLE"] = "motorcycle";
17
+ CostingModels["BIKESHARE"] = "bikeshare";
18
+ CostingModels["MULTIMODAL"] = "multimodal";
19
+ })(CostingModels || (exports.CostingModels = CostingModels = {}));
3
20
  //# sourceMappingURL=costing.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"costing.js","sourceRoot":"","sources":["../../src/types/costing.ts"],"names":[],"mappings":""}
1
+ {"version":3,"file":"costing.js","sourceRoot":"","sources":["../../src/types/costing.ts"],"names":[],"mappings":";;;AAEA;;GAEG;AACH,IAAY,aAWX;AAXD,WAAY,aAAa;IACrB,0CAAyB,CAAA;IACzB,oCAAmB,CAAA;IACnB,8BAAa,CAAA;IACb,4BAAW,CAAA;IACX,gCAAe,CAAA;IACf,8BAAa,CAAA;IACb,+CAA8B,CAAA;IAC9B,0CAAyB,CAAA;IACzB,wCAAuB,CAAA;IACvB,0CAAyB,CAAA;AAC7B,CAAC,EAXW,aAAa,6BAAb,aAAa,QAWxB"}
@@ -1,4 +1,8 @@
1
1
  export interface ErrorResponse {
2
+ /**
3
+ * for detailed run-down see
4
+ * [here](https://valhalla.github.io/valhalla/api/turn-by-turn/api-reference/#http-status-codes-and-conditions)
5
+ */
2
6
  status: string;
3
7
  status_message: string;
4
8
  error_code?: string;
@@ -1 +1 @@
1
- {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/types/error.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAK1B,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
1
+ {"version":3,"file":"error.d.ts","sourceRoot":"","sources":["../../src/types/error.ts"],"names":[],"mappings":"AAAA,MAAM,WAAW,aAAa;IAC1B;;;OAGG;IACH,MAAM,EAAE,MAAM,CAAC;IACf,cAAc,EAAE,MAAM,CAAC;IACvB,UAAU,CAAC,EAAE,MAAM,CAAC;IACpB,KAAK,CAAC,EAAE,MAAM,CAAC;CAClB"}
@@ -4,24 +4,67 @@ import { StringBool } from './base';
4
4
  */
5
5
  export type RoadClass = 'motorway' | 'trunk' | 'primary' | 'secondary' | 'tertiary' | 'unclassified' | 'residential' | 'service_other';
6
6
  export type PreferredSide = 'same' | 'opposite' | 'either';
7
+ /**
8
+ * LocationType
9
+ * - break: u-turn allowed, generate guidance, create legs from
10
+ * - through: u-turn not allowed, not guidance, not new legs, just passthrough
11
+ * - via: u-turn allowed, no legs
12
+ * - break_through: u-turn not allowed, create legs from
13
+ *
14
+ * first and last position of a request are always considered a break point
15
+ */
7
16
  export type LocationType = 'break' | 'break_through' | 'through' | 'via';
8
17
  type LocationSearchFilter = {
18
+ /**
19
+ * Exclude tunnel edges
20
+ */
9
21
  exclude_tunnel?: StringBool;
22
+ /**
23
+ * Exclude bridge edges
24
+ */
10
25
  exclude_bridge?: StringBool;
26
+ /**
27
+ * Exclude ramp edges
28
+ */
11
29
  exclude_ramp?: StringBool;
30
+ /**
31
+ * Exclude closure edges
32
+ */
12
33
  exclude_closure?: StringBool;
34
+ /**
35
+ * lowest road class allowed to snap to, defaults to 'service_other'
36
+ */
13
37
  min_road_class?: RoadClass;
38
+ /**
39
+ * highest road class allowed to snap to, defaults to 'motorway'
40
+ */
14
41
  max_road_class?: RoadClass;
15
42
  };
16
43
  export interface Position {
44
+ /**
45
+ * Latitude, duh
46
+ */
17
47
  lat: number;
48
+ /**
49
+ * Longitude, duh
50
+ */
18
51
  lon: number;
19
52
  }
20
53
  export interface ResponseLocation extends Position {
54
+ /**
55
+ * The order of the location on the initial request
56
+ */
21
57
  original_index: number;
58
+ /**
59
+ * @see {@link LocationType}
60
+ */
22
61
  type: LocationType;
23
62
  }
24
63
  export interface RequestLocation extends Omit<ResponseLocation, 'original_index' | 'type'> {
64
+ /**
65
+ * Additional location information that is forward in the response
66
+ * name, might be used in routing narration <arrived at "${name}">
67
+ */
25
68
  name?: string;
26
69
  city?: string;
27
70
  state?: string;
@@ -29,21 +72,81 @@ export interface RequestLocation extends Omit<ResponseLocation, 'original_index'
29
72
  country?: string;
30
73
  phone?: string;
31
74
  url?: string;
75
+ /**
76
+ * Time in seconds to spend at location, only for type break or break_through
77
+ */
32
78
  waiting?: number;
79
+ /**
80
+ * preferred direction of travel for start
81
+ */
33
82
  heading?: number;
83
+ /**
84
+ * tolerance as to when a street would be considered to be
85
+ * the same as heading parameter. (default: 60)
86
+ */
34
87
  heading_tolerance?: number;
88
+ /**
89
+ * aid in finding the correct street at a given lat/lon, not yet implemented
90
+ * @exprimental
91
+ */
35
92
  street?: string;
93
+ /**
94
+ * OSM id of a way to aid in finding the correct routing at a given lat/lon
95
+ */
36
96
  way_id?: number;
97
+ /**
98
+ * Minimum number of nodes for a given edge to be considered connected to a region
99
+ * default: 50 reachable nodes
100
+ */
37
101
  minimum_reachability?: number;
102
+ /**
103
+ * Number of meters around the input lat/lon in which edges will be considered.
104
+ * If non are found, Valhalla will try to find the closest edge.
105
+ * default: 0 meters
106
+ */
38
107
  radius?: number;
108
+ /**
109
+ * If "true", candidate edges will be ranked based upon their distance to input lat/lon
110
+ * If "false", all candidate edges will be treated equal with emphesis on optimal route
111
+ */
39
112
  rank_candidates?: StringBool;
113
+ /**
114
+ * - "same": e.g. drive on the right side, end on the right side
115
+ * - "opposite": e.g. drive on the right side, end on the left side
116
+ * - "either": e.g. nobody cares bruh
117
+ */
40
118
  preferred_side?: PreferredSide;
119
+ /**
120
+ * If provided lat/lon will be used for routing location, display_lat/display_lon will be
121
+ * used to show street side location
122
+ */
41
123
  display_lat?: number;
124
+ /**
125
+ * If provided lat/lon will be used for routing location, display_lat/display_lon will be
126
+ * used to show street side location
127
+ */
42
128
  display_lon?: number;
129
+ /**
130
+ * cutoff at which Valhalla will be considering an input of being too far to away from network to route to
131
+ */
43
132
  search_cutoff?: number;
133
+ /**
134
+ * distance in meters when to snap to intersection or stay on street
135
+ * default: 5 meters
136
+ */
44
137
  node_snap_tolerance?: number;
138
+ /**
139
+ * if inpout coordinate is less than tolerance away from the edge, then Valhalla set side of
140
+ * street to None, otherwise left or right depending on direction of travel
141
+ */
45
142
  street_side_tolerance?: number;
143
+ /**
144
+ * max distance in meters that input lat/lon are considered to determine side of street
145
+ */
46
146
  streetside_max_distance?: number;
147
+ /**
148
+ * set of optional filters to exclude edges from the route
149
+ */
47
150
  search_filter?: LocationSearchFilter;
48
151
  }
49
152
  export interface LatLng {
@@ -1 +1 @@
1
- {"version":3,"file":"locations.d.ts","sourceRoot":"","sources":["../../src/types/locations.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEpC;;GAEG;AACH,MAAM,MAAM,SAAS,GACf,UAAU,GACV,OAAO,GACP,SAAS,GACT,WAAW,GACX,UAAU,GACV,cAAc,GACd,aAAa,GACb,eAAe,CAAC;AAEtB,MAAM,MAAM,aAAa,GAAG,MAAM,GAAG,UAAU,GAAG,QAAQ,CAAC;AAW3D,MAAM,MAAM,YAAY,GAAG,OAAO,GAAG,eAAe,GAAG,SAAS,GAAG,KAAK,CAAC;AAEzE,KAAK,oBAAoB,GAAG;IAIxB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ED,MAAM,WAAW,MAAM;IACnB,GAAG,EAAE,MAAM,CAAC;IACZ,GAAG,EAAE,MAAM,CAAC;IACZ,IAAI,CAAC,EAAE,MAAM,CAAC;IACd,IAAI,CAAC,EAAE,YAAY,CAAC;CACvB"}
@@ -48,6 +48,10 @@ export interface TransitStops {
48
48
  arrival_date_time: string;
49
49
  departure_date_time: string;
50
50
  is_parent_stop: boolean;
51
+ /**
52
+ * True if the times are based on an assumed schedule
53
+ * because the actual schedule is not known.
54
+ */
51
55
  assumed_schedule: boolean;
52
56
  lat: number;
53
57
  lon: number;
@@ -56,13 +60,31 @@ export interface TransitInfo {
56
60
  onestop_id: string;
57
61
  short_name: string;
58
62
  long_name: string;
63
+ /**
64
+ * The sign on a public transport vehicle that identifies the route destination to passengers
65
+ *
66
+ * Example: "S1 - Wannsee"
67
+ */
59
68
  headsign: string;
69
+ /**
70
+ * Color associated with transit route
71
+ *
72
+ * Example: Berlin S1 is "pink"
73
+ */
60
74
  color: string;
75
+ /**
76
+ * The numeric text color value associated with a transit route.
77
+ * The value for black would be "0".
78
+ */
61
79
  text_color: string;
62
80
  description: string;
63
81
  operator_ones_top_id: string;
64
82
  operator_name: string;
65
83
  operator_url: string;
84
+ /**
85
+ * A list of the stops/stations associated with a specific transit route.
86
+ * See TransitStop
87
+ */
66
88
  transit_stops: TransitStops;
67
89
  }
68
90
  export interface ManeuverSignElement {
@@ -70,17 +92,41 @@ export interface ManeuverSignElement {
70
92
  consecutive_count?: number;
71
93
  }
72
94
  export interface ManeuverSign {
95
+ /**
96
+ * Example: { "text": "91B" }
97
+ */
73
98
  exit_number_elements: ManeuverSignElement[];
99
+ /**
100
+ * Example: { "text": "I 95 North" }
101
+ */
74
102
  exit_branch_elements: ManeuverSignElement[];
103
+ /**
104
+ * Example: { "text": "New York" }
105
+ */
75
106
  exit_toward_elements: ManeuverSignElement[];
107
+ /**
108
+ * Example: { "text": "Your mom" }
109
+ */
76
110
  exit_name_elements: ManeuverSignElement[];
77
111
  }
78
112
  export interface Maneuver {
79
113
  type: ManeuverType;
80
114
  street_names: string[];
115
+ /**
116
+ * Estimated time along the maneuver in seconds.
117
+ */
81
118
  time: number;
119
+ /**
120
+ * Maneuver length in the units specified (mi, km).
121
+ */
82
122
  length: number;
123
+ /**
124
+ * Index into the list of shape points for the start of the maneuver.
125
+ */
83
126
  begin_shape_index: number;
127
+ /**
128
+ * Index into the list of shape points for the end of the maneuver.
129
+ */
84
130
  end_shape_index: number;
85
131
  travel_mode: TravelMode;
86
132
  travel_type: TravelType;
@@ -94,14 +140,62 @@ export interface Maneuver {
94
140
  roundabout_exit_count?: number;
95
141
  }
96
142
  export interface ManeuverWithInstructions extends Maneuver {
143
+ /**
144
+ * Written maneuver instruction. Describes the maneuver,
145
+ * such as "Turn right onto Main Street".
146
+ */
97
147
  instruction: string;
148
+ /**
149
+ * Text suitable for use as a verbal alert in a navigation application.
150
+ *
151
+ * Example: "Turn right onto North Prince Street"
152
+ */
98
153
  verbal_succinct_transition_instruction: string;
154
+ /**
155
+ * Text suitable for use as a verbal message immediately prior to
156
+ * the maneuver transition
157
+ *
158
+ * Example: "Turn right onto North Prince Street, U.S. 2 22"
159
+ */
99
160
  verbal_pre_transition_instruction: string;
161
+ /**
162
+ * Text suitable for use as a verbal message immediately after the maneuver transition.
163
+ *
164
+ * Example: "Continue on U.S. 2 22 for 3.9 miles"
165
+ */
100
166
  verbal_post_transition_instruction: string;
167
+ /**
168
+ * Written depart time instruction.
169
+ * Typically used with a transit maneuver, such as
170
+ *
171
+ * Example: "Depart: 8:04 AM from 8 St - NYU".
172
+ */
101
173
  depart_instruction?: string;
174
+ /**
175
+ * Text suitable for use as a verbal depart time instruction.
176
+ * Typically used with a transit maneuver.
177
+ *
178
+ * Example: "Depart at 8:04 AM from 8 St - NYU".
179
+ */
102
180
  verbal_depart_instruction?: string;
181
+ /**
182
+ * Written arrive time instruction.
183
+ * Typically used with a transit maneuver,
184
+ *
185
+ * Example: "Arrive: 8:10 AM at 34 St - Herald Sq".
186
+ */
103
187
  arrive_instruction?: string;
188
+ /**
189
+ * Text suitable for use as a verbal arrive time instruction.
190
+ * Typically used with a transit maneuver.
191
+ *
192
+ * Example: "Arrive at 8:10 AM at 34 St - Herald Sq".
193
+ */
104
194
  verbal_arrive_instruction?: string;
195
+ /**
196
+ * True if the verbal_pre_transition_instruction has been appended
197
+ * with the verbal instruction of the next maneuver.
198
+ */
105
199
  verbal_multi_cue?: boolean;
106
200
  }
107
201
  export interface ManeuverWithInstructionsForTransit extends ManeuverWithInstructions {
@@ -1 +1 @@
1
- {"version":3,"file":"maneuver.d.ts","sourceRoot":"","sources":["../../src/types/maneuver.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,eAAe,EAAE,UAAU,EAAE,UAAU,EAAE,MAAM,QAAQ,CAAC;AAEjE,oBAAY,YAAY;IACpB,KAAK,IAAI;IACT,MAAM,IAAI;IACV,WAAW,IAAI;IACf,UAAU,IAAI;IACd,YAAY,IAAI;IAChB,iBAAiB,IAAI;IACrB,gBAAgB,IAAI;IACpB,QAAQ,IAAI;IACZ,SAAS,IAAI;IACb,YAAY,IAAI;IAChB,MAAM,KAAK;IACX,WAAW,KAAK;IAChB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,UAAU,KAAK;IACf,KAAK,KAAK;IACV,WAAW,KAAK;IAChB,aAAa,KAAK;IAClB,UAAU,KAAK;IACf,SAAS,KAAK;IACd,UAAU,KAAK;IACf,SAAS,KAAK;IACd,aAAa,KAAK;IAClB,UAAU,KAAK;IACf,SAAS,KAAK;IACd,MAAM,KAAK;IACX,gBAAgB,KAAK;IACrB,eAAe,KAAK;IACpB,WAAW,KAAK;IAChB,UAAU,KAAK;IACf,QAAQ,KAAK;IACb,gBAAgB,KAAK;IACrB,gBAAgB,KAAK;IACrB,uBAAuB,KAAK;IAC5B,0BAA0B,KAAK;IAC/B,6BAA6B,KAAK;IAClC,iCAAiC,KAAK;IACtC,WAAW,KAAK;IAChB,UAAU,KAAK;CAClB;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AAM,CAAC;IAC3C;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;;;OAKG;IACH,kBAAkB,CAAC,EAAE,MAAM,CAAC;IAC5B;;;;;OAKG;IACH,yBAAyB,CAAC,EAAE,MAAM,CAAC;IACnC;;;OAGG;IACH,gBAAgB,CAAC,EAAE,OAAO,CAAC;CAC9B;AAED,MAAM,WAAW,kCACb,SAAQ,wBAAwB;IAChC,OAAO,CAAC,EAAE,WAAW,CAAC;CACzB"}
@@ -8,7 +8,7 @@ export interface DirectionsOptions {
8
8
  language?: SupportedLanguageTags | SupportedLanguageAlias;
9
9
  }
10
10
  export interface MapMatchingBaseRequest {
11
- costing: Extract<CostingModels, 'auto' | 'bicycle' | 'bus' | 'pedestrian'>;
11
+ costing: `${Extract<CostingModels, 'auto' | 'bicycle' | 'bus' | 'pedestrian'>}`;
12
12
  shape_match: ShapeMatchType;
13
13
  costing_options?: CostingOptions;
14
14
  directions_options?: DirectionsOptions;
@@ -29,68 +29,96 @@ export interface BaseRouteRequest {
29
29
  locations: RequestLocation[];
30
30
  costing_options?: CostingOptions;
31
31
  directions_options?: DirectionsOptions;
32
+ /**
33
+ * none | maneuvers | instructions
34
+ */
32
35
  directions_type?: DirectionsType;
36
+ /**
37
+ * ID that is returned in route response for reference
38
+ */
33
39
  id?: string;
40
+ /**
41
+ * Exclude edges that are close to a set of Positions from the final route
42
+ */
34
43
  exclude_locations?: RequestLocation[];
44
+ /**
45
+ * Exclude edges that intersect a set of polygons from the final route
46
+ */
35
47
  exclude_polygons?: OuterPolygonRing[];
48
+ /**
49
+ * Use to define departure and arrival time
50
+ */
36
51
  date_time?: DateTime;
52
+ /**
53
+ * Output format, defaults to json
54
+ */
37
55
  out_format?: 'json' | 'pbf';
56
+ /**
57
+ * When present and true, the successful route response will include a key linear_references
58
+ */
38
59
  linear_references?: StringBool;
60
+ /**
61
+ * Prioritize bidirectional a* when date_time.type = depart_at/current.
62
+ * By default time_dependent_forward a* is used in these cases,
63
+ * but bidirectional a* is much faster. Currently it does not update
64
+ * the time (and speeds) when searching for the route path,
65
+ * but the ETA on that route is recalculated based on the time-dependent speeds
66
+ */
39
67
  prioritize_bidirectional?: StringBool;
40
68
  }
41
69
  export interface BicycleRouteRequest extends BaseRouteRequest {
42
- costing: 'bicycle';
70
+ costing: `${CostingModels.BICYCLE}`;
43
71
  costing_options?: {
44
72
  bicycle: BicycleCostingOptions;
45
73
  };
46
74
  }
47
75
  export interface PedestrianRouteRequest extends BaseRouteRequest {
48
- costing: 'pedestrian';
76
+ costing: `${CostingModels.PEDESTRIAN}`;
49
77
  costing_options?: {
50
78
  pedestrian: PedestrianCostingOptions;
51
79
  };
52
80
  }
53
81
  export interface AutoRouteRequest extends BaseRouteRequest {
54
- costing: 'auto';
82
+ costing: `${CostingModels.AUTO}`;
55
83
  costing_options?: {
56
84
  auto: MotorizedVehicleCostingOptions;
57
85
  };
58
86
  }
59
87
  export interface BusRouteRequest extends BaseRouteRequest {
60
- costing: 'bus';
88
+ costing: `${CostingModels.BUS}`;
61
89
  costing_options?: {
62
90
  bus: MotorizedVehicleCostingOptions;
63
91
  };
64
92
  }
65
93
  export interface TaxiRouteRequest extends BaseRouteRequest {
66
- costing: 'taxi';
94
+ costing: `${CostingModels.TAXI}`;
67
95
  costing_options?: {
68
96
  taxi: MotorizedVehicleCostingOptions;
69
97
  };
70
98
  }
71
99
  export interface TruckRouteRequest extends BaseRouteRequest {
72
- costing: 'truck';
100
+ costing: `${CostingModels.TRUCK}`;
73
101
  costing_options?: {
74
102
  truck: TruckCostingOptions;
75
103
  };
76
104
  }
77
105
  export interface MotorCycleRouteRequest extends BaseRouteRequest {
78
- costing: 'motorcycle';
106
+ costing: `${CostingModels.MOTORCYCLE}`;
79
107
  costing_options?: {
80
108
  motorcycle: MotorcycleCostingOptions;
81
109
  };
82
110
  }
83
111
  export interface MotorScooterRouteRequest extends BaseRouteRequest {
84
- costing: 'motor_scooter';
112
+ costing: `${CostingModels.MOTORSCOOTER}`;
85
113
  costing_options?: {
86
114
  motor_scooter: MotorScooterCostingOptions;
87
115
  };
88
116
  }
89
117
  export interface MultiModalRouteRequest extends BaseRouteRequest {
90
- costing: 'multimodal';
118
+ costing: `${CostingModels.MULTIMODAL}`;
91
119
  }
92
120
  export interface BikeShareRouteRequest extends BaseRouteRequest {
93
- costing: 'bikeshare';
121
+ costing: `${CostingModels.BIKESHARE}`;
94
122
  }
95
123
  export type TurnByTurnRouteRequest = BicycleRouteRequest | PedestrianRouteRequest | AutoRouteRequest | BusRouteRequest | TaxiRouteRequest | TruckRouteRequest | MotorCycleRouteRequest | MotorScooterRouteRequest | BikeShareRouteRequest | MultiModalRouteRequest;
96
124
  export type OptimizedRouteRequest = AutoRouteRequest | BicycleRouteRequest | PedestrianRouteRequest;
@@ -106,9 +134,28 @@ export interface IsochroneDistanceContour extends IsochroneBaseContour {
106
134
  export type IsochroneBaseRequest = (AutoRouteRequest | BicycleRouteRequest | PedestrianRouteRequest | MultiModalRouteRequest) & {
107
135
  date_time?: DateTime;
108
136
  id?: string;
137
+ /**
138
+ * A Boolean value to determine whether to return geojson polygons or linestrings as the contours.
139
+ *
140
+ * The Default value is false (returns LineStrings)
141
+ */
109
142
  polygons?: boolean;
143
+ /**
144
+ * A floating point value from 0 to 1 (default of 1) which can be used to remove smaller contours.
145
+ * A value of 1 will only return the largest contour for a given time value.
146
+ * A value of 0.5 drops any contours that are less than half the area of
147
+ * the largest contour in the set of contours for that same time value.
148
+ */
110
149
  denoise?: number;
150
+ /**
151
+ * Floating point value in meters as the tolerance in douglas-peucker generalization
152
+ */
111
153
  generalize?: number;
154
+ /**
155
+ * True, returns input location as MultiPoint, one for the search location, one for the snap to the edge
156
+ *
157
+ * The Default value is false
158
+ */
112
159
  show_locations?: boolean;
113
160
  };
114
161
  export type IsochroneTimeRequest = IsochroneBaseRequest & {
@@ -1 +1 @@
1
- {"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LegWithManeuvers<T extends Maneuver = Maneuver> extends Leg {
26
26
  export interface Trip<T extends Leg = Leg> {
27
27
  locations: ResponseLocation[];
28
28
  legs: T[];
29
+ /**
30
+ * for detailed run-down see
31
+ * [here](https://valhalla.github.io/valhalla/api/turn-by-turn/api-reference/#http-status-codes-and-conditions)
32
+ */
29
33
  status: number;
30
34
  status_message: string;
31
35
  language: SupportedLanguageAlias | SupportedLanguageTags;
@@ -58,14 +62,37 @@ export interface MatchedPoints {
58
62
  lon: number;
59
63
  type: 'matched' | 'interpolated' | 'unmatched';
60
64
  edge_index: number;
65
+ /**
66
+ * The boolean value is true if this match result is the begin location of a route disconnect.
67
+ *
68
+ * This value will not exist if this is false.
69
+ */
61
70
  begin_route_discontinuity?: boolean;
71
+ /**
72
+ * The boolean value is true if this match result is the end location of a route disconnect.
73
+ * This value will not exist if this is false.
74
+ */
62
75
  end_route_discontinuity?: boolean;
76
+ /**
77
+ * The distance along the associated edge for this matched point.
78
+ * For example, if the matched point is halfway along the edge then the value would be 0.5.
79
+ *
80
+ * This value will not exist if this point was unmatched.
81
+ */
63
82
  distance_along_edge: number;
83
+ /**
84
+ * The distance in meters from the trace point to the matched point.
85
+ *
86
+ * This value will not exist if this point was unmatched.
87
+ */
64
88
  distance_from_trace_point?: number;
65
89
  }
66
90
  export interface MapMatchingTraceAttributesResponse {
67
91
  units: UnitsOfDistance;
68
92
  osm_changeset: number;
93
+ /**
94
+ * Encoded polyline
95
+ */
69
96
  shape: string;
70
97
  confidence_score: number;
71
98
  raw_score: number;
@@ -78,10 +105,26 @@ export interface MapMatchingTraceAttributesResponse {
78
105
  edges: object[];
79
106
  matched_points: MatchedPoints[];
80
107
  }
108
+ /**
109
+ * Status Service API
110
+ *
111
+ * In its base form will return version and tileset_last_modified
112
+ *
113
+ * If service_limits.status.allow_verbose is set to true, will also
114
+ * return addtional.
115
+ */
81
116
  export interface StatusResponse {
82
117
  version: string;
83
118
  tileset_last_modfied: number;
84
119
  }
120
+ /**
121
+ * Status Service API
122
+ *
123
+ * In its base form will return version and tileset_last_modified
124
+ *
125
+ * If service_limits.status.allow_verbose is set to true, will also
126
+ * return addtional.
127
+ */
85
128
  export interface ExtendedStatusResponse extends StatusResponse {
86
129
  has_tiles?: boolean;
87
130
  has_admin?: boolean;
@@ -1 +1 @@
1
- {"version":3,"file":"response.d.ts","sourceRoot":"","sources":["../../src/types/response.ts"],"names":[],"mappings":"AAAA,OAAO,KAAK,KAAK,OAAO,MAAM,SAAS,CAAC;AACxC,OAAO,EAAE,eAAe,EAAE,MAAM,QAAQ,CAAC;AACzC,OAAO,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,MAAM,aAAa,CAAC;AAC5E,OAAO,EAAE,gBAAgB,EAAE,MAAM,aAAa,CAAC;AAC/C,OAAO,EAAE,QAAQ,EAAE,MAAM,YAAY,CAAC;AAEtC,MAAM,WAAW,OAAO;IACpB,qBAAqB,EAAE,OAAO,CAAC;IAC/B,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,OAAO,EAAE,MAAM,CAAC;IAChB,IAAI,EAAE,MAAM,CAAC;IACb,MAAM,EAAE,MAAM,CAAC;IACf,IAAI,EAAE,MAAM,CAAC;IACb,QAAQ,CAAC,EAAE,OAAO,CAAC;IACnB,WAAW,CAAC,EAAE,OAAO,CAAC;IACtB,SAAS,CAAC,EAAE,OAAO,CAAC;CACvB;AAED,MAAM,WAAW,GAAG;IAChB,OAAO,EAAE,OAAO,CAAC;IACjB,KAAK,EAAE,MAAM,CAAC;CACjB;AAED,MAAM,WAAW,gBAAgB,CAAC,CAAC,SAAS,QAAQ,GAAG,QAAQ,CAAE,SAAQ,GAAG;IACxE,SAAS,EAAE,CAAC,EAAE,CAAC;CAClB;AAED,MAAM,WAAW,IAAI,CAAC,CAAC,SAAS,GAAG,GAAG,GAAG;IACrC,SAAS,EAAE,gBAAgB,EAAE,CAAC;IAC9B,IAAI,E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,SAAS,EAAE,MAAM,CAAC;IAClB,MAAM,EAAE;QACJ,YAAY,EAAE,MAAM,CAAC;QACrB,UAAU,EAAE,MAAM,CAAC;QACnB,YAAY,CAAC,EAAE,MAAM,CAAC;QACtB,UAAU,CAAC,EAAE,MAAM,CAAC;KACvB,EAAE,CAAC;IACJ,KAAK,EAAE,MAAM,EAAE,CAAC;IAChB,cAAc,EAAE,aAAa,EAAE,CAAC;CACnC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,cAAc;IAC3B,OAAO,EAAE,MAAM,CAAC;IAChB,oBAAoB,EAAE,MAAM,CAAC;CAChC;AAED;;;;;;;GAOG;AACH,MAAM,WAAW,sBAAuB,SAAQ,cAAc;IAC1D,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,SAAS,CAAC,EAAE,OAAO,CAAC;IACpB,aAAa,CAAC,EAAE,OAAO,CAAC;IACxB,gBAAgB,CAAC,EAAE,OAAO,CAAC;IAC3B,IAAI,CAAC,EAAE,MAAM,CAAC;CACjB"}
@@ -7,9 +7,21 @@ export interface TraceAttributesFilter {
7
7
  }
8
8
  export interface TraceOptions {
9
9
  turn_penalty_factor?: number;
10
+ /**
11
+ * Search radius in meters associated with supplied trace points.
12
+ */
10
13
  search_radius?: number[];
14
+ /**
15
+ * GPS accuracy in meters associated with supplied trace points.
16
+ */
11
17
  gps_accuracy?: number[];
18
+ /**
19
+ * Breaking distance in meters between trace points.
20
+ */
12
21
  breakage_distance?: number;
22
+ /**
23
+ * Interpolation distance in meters beyond which trace points are merged together.
24
+ */
13
25
  interpolation_distance?: number;
14
26
  }
15
27
  //# sourceMappingURL=tracing.d.ts.map
@@ -1 +1 @@
1
- {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/types/tracing.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAC5B,eAAe,GACf,OAAO,GACP,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,eAAe,GACf,c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AAC;IAIxB,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAI3B,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC"}
1
+ {"version":3,"file":"tracing.d.ts","sourceRoot":"","sources":["../../src/types/tracing.ts"],"names":[],"mappings":"AAAA,MAAM,MAAM,sBAAsB,GAC5B,eAAe,GACf,OAAO,GACP,oBAAoB,GACpB,oBAAoB,GACpB,kBAAkB,GAClB,kBAAkB,GAClB,eAAe,GACf,cAAc,GACd,oBAAoB,GACpB,mCAAmC,GACnC,iCAAiC,GACjC,6BAA6B,GAC7B,mCAAmC,CAAC;AAE1C,MAAM,MAAM,qBAAqB,GAC3B,sCAAsC,GACtC,mDAAmD,GACnD,iDAAiD,GACjD,qCAAqC,GACrC,oCAAoC,GACpC,oCAAoC,GACpC,4BAA4B,GAC5B,mCAAmC,GACnC,mCAAmC,GACnC,mBAAmB,GACnB,kBAAkB,GAClB,WAAW,GACX,WAAW,GACX,gBAAgB,CAAC;AAEvB,MAAM,MAAM,qBAAqB,GAC3B,YAAY,GACZ,aAAa,GACb,YAAY,GACZ,iBAAiB,GACjB,oBAAoB,GACpB,kBAAkB,GAClB,wBAAwB,GACxB,sBAAsB,GACtB,qBAAqB,GACrB,UAAU,GACV,WAAW,GACX,cAAc,GACd,aAAa,GACb,aAAa,GACb,iBAAiB,GACjB,4BAA4B,GAC5B,qBAAqB,GACrB,cAAc,GACd,uBAAuB,GACvB,uBAAuB,GACvB,uBAAuB,GACvB,qBAAqB,GACrB,kBAAkB,GAClB,mBAAmB,GACnB,sBAAsB,GACtB,mBAAmB,GACnB,mBAAmB,GACnB,SAAS,GACT,aAAa,GACb,aAAa,GACb,qBAAqB,GACrB,uBAAuB,GACvB,yBAAyB,GACzB,qBAAqB,GACrB,iBAAiB,GACjB,iBAAiB,GACjB,sBAAsB,GACtB,gBAAgB,GAChB,eAAe,GACf,eAAe,GACf,cAAc,GACd,kBAAkB,GAClB,kBAAkB,GAClB,kBAAkB,CAAC;AAEzB,MAAM,WAAW,qBAAqB;IAClC,UAAU,EAAE,CACN,qBAAqB,GACrB,qBAAqB,GACrB,sBAAsB,CAC3B,EAAE,CAAC;IACJ,MAAM,EAAE,SAAS,GAAG,SAAS,CAAC;CACjC;AAED,MAAM,WAAW,YAAY;IACzB,mBAAmB,CAAC,EAAE,MAAM,CAAC;IAC7B;;OAEG;IACH,aAAa,CAAC,EAAE,MAAM,EAAE,CAAC;IACzB;;OAEG;IACH,YAAY,CAAC,EAAE,MAAM,EAAE,CAAC;IACxB;;OAEG;IACH,iBAAiB,CAAC,EAAE,MAAM,CAAC;IAC3B;;OAEG;IACH,sBAAsB,CAAC,EAAE,MAAM,CAAC;CACnC"}
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@iwpnd/valhalla-ts",
3
- "version": "1.0.1",
3
+ "version": "1.0.3",
4
4
  "description": "A nodejs client and helper utilities for valhalla routing engine",
5
5
  "main": "dist/index.js",
6
6
  "files": [