@stadiamaps/ferrostar 0.28.0 → 0.29.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ferrostar.d.ts CHANGED
@@ -3,15 +3,15 @@
3
3
  /**
4
4
  * JavaScript wrapper for `location_simulation_from_coordinates`.
5
5
  */
6
- export function locationSimulationFromCoordinates(coordinates: any, resample_distance: number | undefined, bias: LocationBias): any;
6
+ export function locationSimulationFromCoordinates(coordinates: any, resample_distance: number | null | undefined, bias: LocationBias): any;
7
7
  /**
8
8
  * JavaScript wrapper for `location_simulation_from_route`.
9
9
  */
10
- export function locationSimulationFromRoute(route: any, resample_distance: number | undefined, bias: LocationBias): any;
10
+ export function locationSimulationFromRoute(route: any, resample_distance: number | null | undefined, bias: LocationBias): any;
11
11
  /**
12
12
  * JavaScript wrapper for `location_simulation_from_polyline`.
13
13
  */
14
- export function locationSimulationFromPolyline(polyline: string, precision: number, resample_distance: number | undefined, bias: LocationBias): any;
14
+ export function locationSimulationFromPolyline(polyline: string, precision: number, resample_distance: number | null | undefined, bias: LocationBias): any;
15
15
  /**
16
16
  * JavaScript wrapper for `advance_location_simulation`.
17
17
  */
@@ -193,7 +193,7 @@ export class RouteAdapter {
193
193
  * Creates a new RouteAdapter with a Valhalla HTTP request generator and an OSRM response parser.
194
194
  * At the moment, this is the only supported combination.
195
195
  */
196
- constructor(endpoint_url: string, profile: string, costing_options_json?: string);
196
+ constructor(endpoint_url: string, profile: string, costing_options_json?: string | null);
197
197
  generateRequest(user_location: any, waypoints: any): any;
198
198
  parseResponse(response: Uint8Array): any;
199
199
  }
package/ferrostar_bg.js CHANGED
@@ -183,7 +183,7 @@ function takeFromExternrefTable0(idx) {
183
183
  /**
184
184
  * JavaScript wrapper for `location_simulation_from_coordinates`.
185
185
  * @param {any} coordinates
186
- * @param {number | undefined} resample_distance
186
+ * @param {number | null | undefined} resample_distance
187
187
  * @param {LocationBias} bias
188
188
  * @returns {any}
189
189
  */
@@ -198,7 +198,7 @@ export function locationSimulationFromCoordinates(coordinates, resample_distance
198
198
  /**
199
199
  * JavaScript wrapper for `location_simulation_from_route`.
200
200
  * @param {any} route
201
- * @param {number | undefined} resample_distance
201
+ * @param {number | null | undefined} resample_distance
202
202
  * @param {LocationBias} bias
203
203
  * @returns {any}
204
204
  */
@@ -214,7 +214,7 @@ export function locationSimulationFromRoute(route, resample_distance, bias) {
214
214
  * JavaScript wrapper for `location_simulation_from_polyline`.
215
215
  * @param {string} polyline
216
216
  * @param {number} precision
217
- * @param {number | undefined} resample_distance
217
+ * @param {number | null | undefined} resample_distance
218
218
  * @param {LocationBias} bias
219
219
  * @returns {any}
220
220
  */
@@ -337,7 +337,7 @@ export class RouteAdapter {
337
337
  * At the moment, this is the only supported combination.
338
338
  * @param {string} endpoint_url
339
339
  * @param {string} profile
340
- * @param {string | undefined} [costing_options_json]
340
+ * @param {string | null} [costing_options_json]
341
341
  */
342
342
  constructor(endpoint_url, profile, costing_options_json) {
343
343
  const ptr0 = passStringToWasm0(endpoint_url, wasm.__wbindgen_malloc, wasm.__wbindgen_realloc);
@@ -397,18 +397,18 @@ export function __wbg_String_eecc4a11987127d6(arg0, arg1) {
397
397
  getDataViewMemory0().setInt32(arg0 + 4 * 0, ptr1, true);
398
398
  };
399
399
 
400
- export function __wbg_buffer_61b7ce01341d7f88(arg0) {
400
+ export function __wbg_buffer_609cc3eee51ed158(arg0) {
401
401
  const ret = arg0.buffer;
402
402
  return ret;
403
403
  };
404
404
 
405
- export function __wbg_call_500db948e69c7330() { return handleError(function (arg0, arg1, arg2) {
406
- const ret = arg0.call(arg1, arg2);
405
+ export function __wbg_call_672a4d21634d4a24() { return handleError(function (arg0, arg1) {
406
+ const ret = arg0.call(arg1);
407
407
  return ret;
408
408
  }, arguments) };
409
409
 
410
- export function __wbg_call_b0d8e36992d9900d() { return handleError(function (arg0, arg1) {
411
- const ret = arg0.call(arg1);
410
+ export function __wbg_call_7cccdd69e0791ae2() { return handleError(function (arg0, arg1, arg2) {
411
+ const ret = arg0.call(arg1, arg2);
412
412
  return ret;
413
413
  }, arguments) };
414
414
 
@@ -417,12 +417,12 @@ export function __wbg_crypto_ed58b8e10a292839(arg0) {
417
417
  return ret;
418
418
  };
419
419
 
420
- export function __wbg_done_f22c1561fa919baa(arg0) {
420
+ export function __wbg_done_769e5ede4b31c67b(arg0) {
421
421
  const ret = arg0.done;
422
422
  return ret;
423
423
  };
424
424
 
425
- export function __wbg_entries_4f2bb9b0d701c0f6(arg0) {
425
+ export function __wbg_entries_3265d4158b33e5dc(arg0) {
426
426
  const ret = Object.entries(arg0);
427
427
  return ret;
428
428
  };
@@ -431,22 +431,22 @@ export function __wbg_getRandomValues_bcb4912f16000dc4() { return handleError(fu
431
431
  arg0.getRandomValues(arg1);
432
432
  }, arguments) };
433
433
 
434
- export function __wbg_get_9aa3dff3f0266054(arg0, arg1) {
435
- const ret = arg0[arg1 >>> 0];
436
- return ret;
437
- };
438
-
439
- export function __wbg_get_bbccf8970793c087() { return handleError(function (arg0, arg1) {
434
+ export function __wbg_get_67b2ba62fc30de12() { return handleError(function (arg0, arg1) {
440
435
  const ret = Reflect.get(arg0, arg1);
441
436
  return ret;
442
437
  }, arguments) };
443
438
 
439
+ export function __wbg_get_b9b93047fe3cf45b(arg0, arg1) {
440
+ const ret = arg0[arg1 >>> 0];
441
+ return ret;
442
+ };
443
+
444
444
  export function __wbg_getwithrefkey_1dc361bd10053bfe(arg0, arg1) {
445
445
  const ret = arg0[arg1];
446
446
  return ret;
447
447
  };
448
448
 
449
- export function __wbg_instanceof_ArrayBuffer_670ddde44cdb2602(arg0) {
449
+ export function __wbg_instanceof_ArrayBuffer_e14585432e3737fc(arg0) {
450
450
  let result;
451
451
  try {
452
452
  result = arg0 instanceof ArrayBuffer;
@@ -457,7 +457,7 @@ export function __wbg_instanceof_ArrayBuffer_670ddde44cdb2602(arg0) {
457
457
  return ret;
458
458
  };
459
459
 
460
- export function __wbg_instanceof_Uint8Array_28af5bc19d6acad8(arg0) {
460
+ export function __wbg_instanceof_Uint8Array_17156bcf118086a9(arg0) {
461
461
  let result;
462
462
  try {
463
463
  result = arg0 instanceof Uint8Array;
@@ -468,27 +468,27 @@ export function __wbg_instanceof_Uint8Array_28af5bc19d6acad8(arg0) {
468
468
  return ret;
469
469
  };
470
470
 
471
- export function __wbg_isArray_1ba11a930108ec51(arg0) {
471
+ export function __wbg_isArray_a1eab7e0d067391b(arg0) {
472
472
  const ret = Array.isArray(arg0);
473
473
  return ret;
474
474
  };
475
475
 
476
- export function __wbg_isSafeInteger_12f5549b2fca23f4(arg0) {
476
+ export function __wbg_isSafeInteger_343e2beeeece1bb0(arg0) {
477
477
  const ret = Number.isSafeInteger(arg0);
478
478
  return ret;
479
479
  };
480
480
 
481
- export function __wbg_iterator_23604bb983791576() {
481
+ export function __wbg_iterator_9a24c88df860dc65() {
482
482
  const ret = Symbol.iterator;
483
483
  return ret;
484
484
  };
485
485
 
486
- export function __wbg_length_65d1cd11729ced11(arg0) {
486
+ export function __wbg_length_a446193dc22c12f8(arg0) {
487
487
  const ret = arg0.length;
488
488
  return ret;
489
489
  };
490
490
 
491
- export function __wbg_length_d65cf0786bfc5739(arg0) {
491
+ export function __wbg_length_e2d2a49132c1b256(arg0) {
492
492
  const ret = arg0.length;
493
493
  return ret;
494
494
  };
@@ -498,57 +498,57 @@ export function __wbg_msCrypto_0a36e2ec3a343d26(arg0) {
498
498
  return ret;
499
499
  };
500
500
 
501
- export function __wbg_new_254fa9eac11932ae() {
502
- const ret = new Array();
501
+ export function __wbg_new_405e22f390576ce2() {
502
+ const ret = new Object();
503
503
  return ret;
504
504
  };
505
505
 
506
- export function __wbg_new_3ff5b33b1ce712df(arg0) {
507
- const ret = new Uint8Array(arg0);
506
+ export function __wbg_new_5e0be73521bc8c17() {
507
+ const ret = new Map();
508
508
  return ret;
509
509
  };
510
510
 
511
- export function __wbg_new_688846f374351c92() {
512
- const ret = new Object();
511
+ export function __wbg_new_78feb108b6472713() {
512
+ const ret = new Array();
513
513
  return ret;
514
514
  };
515
515
 
516
- export function __wbg_new_bc96c6a1c0786643() {
517
- const ret = new Map();
516
+ export function __wbg_new_a12002a7f91c75be(arg0) {
517
+ const ret = new Uint8Array(arg0);
518
518
  return ret;
519
519
  };
520
520
 
521
- export function __wbg_newnoargs_fd9e4bf8be2bc16d(arg0, arg1) {
521
+ export function __wbg_newnoargs_105ed471475aaf50(arg0, arg1) {
522
522
  const ret = new Function(getStringFromWasm0(arg0, arg1));
523
523
  return ret;
524
524
  };
525
525
 
526
- export function __wbg_newwithbyteoffsetandlength_ba35896968751d91(arg0, arg1, arg2) {
526
+ export function __wbg_newwithbyteoffsetandlength_d97e637ebe145a9a(arg0, arg1, arg2) {
527
527
  const ret = new Uint8Array(arg0, arg1 >>> 0, arg2 >>> 0);
528
528
  return ret;
529
529
  };
530
530
 
531
- export function __wbg_newwithlength_34ce8f1051e74449(arg0) {
531
+ export function __wbg_newwithlength_a381634e90c276d4(arg0) {
532
532
  const ret = new Uint8Array(arg0 >>> 0);
533
533
  return ret;
534
534
  };
535
535
 
536
- export function __wbg_next_01dd9234a5bf6d05() { return handleError(function (arg0) {
537
- const ret = arg0.next();
538
- return ret;
539
- }, arguments) };
540
-
541
- export function __wbg_next_137428deb98342b0(arg0) {
536
+ export function __wbg_next_25feadfc0913fea9(arg0) {
542
537
  const ret = arg0.next;
543
538
  return ret;
544
539
  };
545
540
 
541
+ export function __wbg_next_6574e1a8a62d1055() { return handleError(function (arg0) {
542
+ const ret = arg0.next();
543
+ return ret;
544
+ }, arguments) };
545
+
546
546
  export function __wbg_node_02999533c4ea02e3(arg0) {
547
547
  const ret = arg0.node;
548
548
  return ret;
549
549
  };
550
550
 
551
- export function __wbg_now_64d0bb151e5d3889() {
551
+ export function __wbg_now_807e54c39636c349() {
552
552
  const ret = Date.now();
553
553
  return ret;
554
554
  };
@@ -567,49 +567,49 @@ export function __wbg_require_79b1e9274cde3c87() { return handleError(function (
567
567
  return ret;
568
568
  }, arguments) };
569
569
 
570
- export function __wbg_set_1d80752d0d5f0b21(arg0, arg1, arg2) {
570
+ export function __wbg_set_37837023f3d740e8(arg0, arg1, arg2) {
571
571
  arg0[arg1 >>> 0] = arg2;
572
572
  };
573
573
 
574
- export function __wbg_set_23d69db4e5c66a6e(arg0, arg1, arg2) {
575
- arg0.set(arg1, arg2 >>> 0);
576
- };
577
-
578
574
  export function __wbg_set_3f1d0b984ed272ed(arg0, arg1, arg2) {
579
575
  arg0[arg1] = arg2;
580
576
  };
581
577
 
582
- export function __wbg_set_76818dc3c59a63d5(arg0, arg1, arg2) {
578
+ export function __wbg_set_65595bdd868b3009(arg0, arg1, arg2) {
579
+ arg0.set(arg1, arg2 >>> 0);
580
+ };
581
+
582
+ export function __wbg_set_8fc6bf8a5b1071d1(arg0, arg1, arg2) {
583
583
  const ret = arg0.set(arg1, arg2);
584
584
  return ret;
585
585
  };
586
586
 
587
- export function __wbg_static_accessor_GLOBAL_0be7472e492ad3e3() {
587
+ export function __wbg_static_accessor_GLOBAL_88a902d13a557d07() {
588
588
  const ret = typeof global === 'undefined' ? null : global;
589
589
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
590
590
  };
591
591
 
592
- export function __wbg_static_accessor_GLOBAL_THIS_1a6eb482d12c9bfb() {
592
+ export function __wbg_static_accessor_GLOBAL_THIS_56578be7e9f832b0() {
593
593
  const ret = typeof globalThis === 'undefined' ? null : globalThis;
594
594
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
595
595
  };
596
596
 
597
- export function __wbg_static_accessor_SELF_1dc398a895c82351() {
597
+ export function __wbg_static_accessor_SELF_37c5d418e4bf5819() {
598
598
  const ret = typeof self === 'undefined' ? null : self;
599
599
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
600
600
  };
601
601
 
602
- export function __wbg_static_accessor_WINDOW_ae1c80c7eea8d64a() {
602
+ export function __wbg_static_accessor_WINDOW_5de37043a91a9c40() {
603
603
  const ret = typeof window === 'undefined' ? null : window;
604
604
  return isLikeNone(ret) ? 0 : addToExternrefTable0(ret);
605
605
  };
606
606
 
607
- export function __wbg_subarray_46adeb9b86949d12(arg0, arg1, arg2) {
607
+ export function __wbg_subarray_aa9065fa9dc5df96(arg0, arg1, arg2) {
608
608
  const ret = arg0.subarray(arg1 >>> 0, arg2 >>> 0);
609
609
  return ret;
610
610
  };
611
611
 
612
- export function __wbg_value_4c32fd138a88eee2(arg0) {
612
+ export function __wbg_value_cd1ffa7b1ab794f1(arg0) {
613
613
  const ret = arg0.value;
614
614
  return ret;
615
615
  };
package/ferrostar_bg.wasm CHANGED
Binary file
package/package.json CHANGED
@@ -7,7 +7,7 @@
7
7
  "Luke Seelenbinder <luke@stadiamaps.com>"
8
8
  ],
9
9
  "description": "The core of modern turn-by-turn navigation.",
10
- "version": "0.28.0",
10
+ "version": "0.29.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",