@wemap/osm 4.0.4 → 4.0.11

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/package.json CHANGED
@@ -11,7 +11,7 @@
11
11
  "directory": "packages/osm"
12
12
  },
13
13
  "name": "@wemap/osm",
14
- "version": "4.0.4",
14
+ "version": "4.0.11",
15
15
  "bugs": {
16
16
  "url": "https://github.com/wemap/wemap-modules-js/issues"
17
17
  },
@@ -25,10 +25,10 @@
25
25
  ],
26
26
  "license": "ISC",
27
27
  "dependencies": {
28
- "@wemap/geo": "^4.0.4",
28
+ "@wemap/geo": "^4.0.11",
29
29
  "@wemap/logger": "^4.0.0",
30
30
  "@wemap/maths": "^4.0.3",
31
31
  "sax": "^1.2.4"
32
32
  },
33
- "gitHead": "8cb2140ad039f1e12b9834effb7cef467ade7549"
33
+ "gitHead": "dd19a366258ad594763ffcb00e9db5fa6aec4256"
34
34
  }
@@ -70,11 +70,12 @@ class OsmNetworkUtils {
70
70
 
71
71
 
72
72
  /**
73
- * @param {node} node
73
+ * @param {Node} node
74
74
  * @param {object} tags
75
75
  */
76
76
  static _applyNodePropertiesFromTags(node, tags) {
77
77
  node.name = tags.name || null;
78
+ node.subwayEntrance = tags.railway === 'subway_entrance';
78
79
  }
79
80
 
80
81
  /**
@@ -108,6 +108,10 @@ export function itineraryToOsrmJson(itinerary) {
108
108
  if (levelChange !== null) {
109
109
  osrmStep.levelChange = levelChange;
110
110
  }
111
+ if (node.subwayEntrance) {
112
+ osrmStep.name = node.name;
113
+ osrmStep.subwayEntrance = true;
114
+ }
111
115
 
112
116
  // The first modifier is not mandatory by OSRM.
113
117
  // if (i !== 0) {