@wemap/osm 4.0.14 → 4.0.15
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.
|
|
14
|
+
"version": "4.0.15",
|
|
15
15
|
"bugs": {
|
|
16
16
|
"url": "https://github.com/wemap/wemap-modules-js/issues"
|
|
17
17
|
},
|
|
@@ -30,5 +30,5 @@
|
|
|
30
30
|
"@wemap/maths": "^4.0.3",
|
|
31
31
|
"sax": "^1.2.4"
|
|
32
32
|
},
|
|
33
|
-
"gitHead": "
|
|
33
|
+
"gitHead": "eaaaf8ba0d4ba7e2d1de5a8910f7cf8e0ad8aaf1"
|
|
34
34
|
}
|
|
@@ -7,7 +7,12 @@ import OsmNode from '../model/OsmNode.js';
|
|
|
7
7
|
class OsmNetworkUtils {
|
|
8
8
|
|
|
9
9
|
static HIGHWAYS_PEDESTRIANS = ['footway', 'steps', 'pedestrian', 'living_street', 'path', 'track', 'sidewalk'];
|
|
10
|
-
static DEFAULT_WAY_SELECTOR = way =>
|
|
10
|
+
static DEFAULT_WAY_SELECTOR = way => {
|
|
11
|
+
return this.HIGHWAYS_PEDESTRIANS.includes(way.tags.highway)
|
|
12
|
+
|| way.tags.footway === 'sidewalk'
|
|
13
|
+
|| way.tags.public_transport === 'platform'
|
|
14
|
+
|| way.tags.railway === 'platform';
|
|
15
|
+
};
|
|
11
16
|
|
|
12
17
|
/**
|
|
13
18
|
* @param {OsmModel} osmModel
|