@stadiamaps/ferrostar 0.22.0 → 0.23.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
@@ -52,6 +52,38 @@ export interface LaneInfo {
52
52
  activeDirection: string | undefined;
53
53
  }
54
54
 
55
+ export interface Incident {
56
+ id: string;
57
+ incidentType: IncidentType;
58
+ description: string | undefined;
59
+ longDescription: string | undefined;
60
+ creationTime: Date | null;
61
+ startTime: Date | null;
62
+ endTime: Date | null;
63
+ impact: Impact | undefined;
64
+ lanesBlocked: BlockedLane[];
65
+ congestion: Congestion | undefined;
66
+ closed: boolean | undefined;
67
+ geometryIndexStart: number;
68
+ geometryIndexEnd: number | undefined;
69
+ subType: string | undefined;
70
+ subTypeDescription: string | undefined;
71
+ iso31661Alpha2: string | undefined;
72
+ iso31661Alpha3: string | undefined;
73
+ affectedRoadNames: string[];
74
+ bbox: BoundingBox | undefined;
75
+ }
76
+
77
+ export interface Congestion {
78
+ value: number;
79
+ }
80
+
81
+ export type BlockedLane = "left" | "left center" | "left turn lane" | "center" | "right" | "right center" | "right turn lane" | "hov";
82
+
83
+ export type Impact = "unknown" | "critical" | "major" | "minor" | "low";
84
+
85
+ export type IncidentType = "accident" | "congestion" | "construction" | "disabled_vehicle" | "lane_restriction" | "mass_transit" | "miscellaneous" | "other_news" | "planned_event" | "road_closure" | "road_hazard" | "weather";
86
+
55
87
  export type ManeuverModifier = "uturn" | "sharp right" | "right" | "slight right" | "straight" | "slight left" | "left" | "sharp left";
56
88
 
57
89
  export type ManeuverType = "turn" | "new name" | "depart" | "arrive" | "merge" | "on ramp" | "off ramp" | "fork" | "end of road" | "continue" | "roundabout" | "rotary" | "roundabout turn" | "notification" | "exit roundabout" | "exit rotary";
@@ -72,6 +104,7 @@ export interface RouteStep {
72
104
  visualInstructions: VisualInstruction[];
73
105
  spokenInstructions: SpokenInstruction[];
74
106
  annotations: string[] | undefined;
107
+ incidents: Incident[];
75
108
  }
76
109
 
77
110
  export interface Route {
package/ferrostar_bg.js CHANGED
@@ -188,13 +188,6 @@ function debugString(val) {
188
188
  // TODO we could test for more things here, like `Set`s and `Map`s.
189
189
  return className;
190
190
  }
191
-
192
- function passArray8ToWasm0(arg, malloc) {
193
- const ptr = malloc(arg.length * 1, 1) >>> 0;
194
- getUint8ArrayMemory0().set(arg, ptr / 1);
195
- WASM_VECTOR_LEN = arg.length;
196
- return ptr;
197
- }
198
191
  /**
199
192
  * JavaScript wrapper for `location_simulation_from_coordinates`.
200
193
  * @param {any} coordinates
@@ -277,6 +270,13 @@ export function advanceLocationSimulation(state) {
277
270
  return takeObject(ret);
278
271
  }
279
272
 
273
+ function passArray8ToWasm0(arg, malloc) {
274
+ const ptr = malloc(arg.length * 1, 1) >>> 0;
275
+ getUint8ArrayMemory0().set(arg, ptr / 1);
276
+ WASM_VECTOR_LEN = arg.length;
277
+ return ptr;
278
+ }
279
+
280
280
  function handleError(f, args) {
281
281
  try {
282
282
  return f.apply(this, args);
@@ -544,11 +544,6 @@ export function __wbindgen_string_new(arg0, arg1) {
544
544
  return addHeapObject(ret);
545
545
  };
546
546
 
547
- export function __wbindgen_as_number(arg0) {
548
- const ret = +getObject(arg0);
549
- return ret;
550
- };
551
-
552
547
  export function __wbindgen_object_clone_ref(arg0) {
553
548
  const ret = getObject(arg0);
554
549
  return addHeapObject(ret);
@@ -559,6 +554,11 @@ export function __wbindgen_error_new(arg0, arg1) {
559
554
  return addHeapObject(ret);
560
555
  };
561
556
 
557
+ export function __wbindgen_as_number(arg0) {
558
+ const ret = +getObject(arg0);
559
+ return ret;
560
+ };
561
+
562
562
  export function __wbindgen_jsval_loose_eq(arg0, arg1) {
563
563
  const ret = getObject(arg0) == getObject(arg1);
564
564
  return ret;
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.22.0",
10
+ "version": "0.23.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",