@stadiamaps/ferrostar 0.22.0 → 0.24.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";
@@ -68,10 +100,12 @@ export interface RouteStep {
68
100
  distance: number;
69
101
  duration: number;
70
102
  roadName: string | undefined;
103
+ exits: string[];
71
104
  instruction: string;
72
105
  visualInstructions: VisualInstruction[];
73
106
  spokenInstructions: SpokenInstruction[];
74
107
  annotations: string[] | undefined;
108
+ incidents: Incident[];
75
109
  }
76
110
 
77
111
  export interface Route {
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.24.0",
11
11
  "license": "BSD-3-Clause",
12
12
  "repository": {
13
13
  "type": "git",