@wemap/routers 12.12.1 → 12.12.3
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/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +18 -9
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2405,7 +2405,7 @@ const _GraphRouterOptionsBuilder = class _GraphRouterOptionsBuilder {
|
|
|
2405
2405
|
};
|
|
2406
2406
|
const weightVertexFn = (vertex) => {
|
|
2407
2407
|
if (vertex.properties.isTurnstile) {
|
|
2408
|
-
return
|
|
2408
|
+
return 10;
|
|
2409
2409
|
}
|
|
2410
2410
|
return 0;
|
|
2411
2411
|
};
|
|
@@ -13254,18 +13254,18 @@ function getFeatures(geojson) {
|
|
|
13254
13254
|
}
|
|
13255
13255
|
const _GeoJsonGraphUtils = class _GeoJsonGraphUtils {
|
|
13256
13256
|
static parsePointProperties(feature) {
|
|
13257
|
-
var _a;
|
|
13258
13257
|
if (!feature.properties)
|
|
13259
13258
|
return {
|
|
13260
13259
|
...feature.id && { externalId: feature.id }
|
|
13261
13260
|
};
|
|
13262
13261
|
return {
|
|
13263
|
-
...((_a = feature.properties) == null ? void 0 : _a.name) && { name: feature.properties.name },
|
|
13264
13262
|
...feature.id && { externalId: feature.id },
|
|
13263
|
+
...OsmTagsUtils.elementName(feature.properties) && { name: OsmTagsUtils.elementName(feature.properties) },
|
|
13265
13264
|
...OsmTagsUtils.isGate(feature.properties) && { isGate: true },
|
|
13266
13265
|
...OsmTagsUtils.isSubwayEntrance(feature.properties) && { isSubwayEntrance: true },
|
|
13267
13266
|
...OsmTagsUtils.getRef(feature.properties) && { subwayEntrsanceRef: OsmTagsUtils.getRef(feature.properties) },
|
|
13268
|
-
...OsmTagsUtils.isElevator(feature.properties) && { isElevator: true }
|
|
13267
|
+
...OsmTagsUtils.isElevator(feature.properties) && { isElevator: true },
|
|
13268
|
+
...OsmTagsUtils.isTurnstile(feature.properties) && { isTurnstile: true }
|
|
13269
13269
|
};
|
|
13270
13270
|
}
|
|
13271
13271
|
static parseLineStringProperties(feature) {
|
|
@@ -13273,6 +13273,10 @@ const _GeoJsonGraphUtils = class _GeoJsonGraphUtils {
|
|
|
13273
13273
|
return {
|
|
13274
13274
|
...feature.id && { externalId: feature.id }
|
|
13275
13275
|
};
|
|
13276
|
+
let wheelchair = OsmTagsUtils.getWheelchair(feature.properties);
|
|
13277
|
+
if (wheelchair === "limited") {
|
|
13278
|
+
wheelchair = void 0;
|
|
13279
|
+
}
|
|
13276
13280
|
return {
|
|
13277
13281
|
...feature.properties.id && { externalId: feature.properties.id },
|
|
13278
13282
|
...feature.id && { externalId: feature.id },
|
|
@@ -13284,7 +13288,7 @@ const _GeoJsonGraphUtils = class _GeoJsonGraphUtils {
|
|
|
13284
13288
|
...OsmTagsUtils.isMovingWalkway(feature.properties) && { isMovingWalkway: true },
|
|
13285
13289
|
...OsmTagsUtils.needTicket(feature.properties) && { needTicket: true },
|
|
13286
13290
|
...OsmTagsUtils.getIncline(feature.properties) && { incline: OsmTagsUtils.getIncline(feature.properties) },
|
|
13287
|
-
...
|
|
13291
|
+
...wheelchair && { wheelchair },
|
|
13288
13292
|
...OsmTagsUtils.getSmoothness(feature.properties) && { smoothness: OsmTagsUtils.getSmoothness(feature.properties) },
|
|
13289
13293
|
...OsmTagsUtils.getSurface(feature.properties) && { surface: OsmTagsUtils.getSurface(feature.properties) }
|
|
13290
13294
|
};
|
|
@@ -13437,7 +13441,7 @@ const _GeoJsonGraphUtils = class _GeoJsonGraphUtils {
|
|
|
13437
13441
|
}
|
|
13438
13442
|
}
|
|
13439
13443
|
});
|
|
13440
|
-
|
|
13444
|
+
const routingBounds = {
|
|
13441
13445
|
type: "MultiPolygon",
|
|
13442
13446
|
coordinates: []
|
|
13443
13447
|
};
|
|
@@ -13487,10 +13491,15 @@ const _OsmGraphUtils = class _OsmGraphUtils {
|
|
|
13487
13491
|
...OsmTagsUtils.elementName(osmNode.tags) && { name: OsmTagsUtils.elementName(osmNode.tags) },
|
|
13488
13492
|
...OsmTagsUtils.isGate(osmNode.tags) && { isGate: true },
|
|
13489
13493
|
...OsmTagsUtils.isSubwayEntrance(osmNode.tags) && { isSubwayEntrance: true },
|
|
13490
|
-
...OsmTagsUtils.getRef(osmNode.tags) && { subwayEntrsanceRef: OsmTagsUtils.getRef(osmNode.tags) }
|
|
13494
|
+
...OsmTagsUtils.getRef(osmNode.tags) && { subwayEntrsanceRef: OsmTagsUtils.getRef(osmNode.tags) },
|
|
13495
|
+
...OsmTagsUtils.isTurnstile(osmNode.tags) && { isTurnstile: true }
|
|
13491
13496
|
};
|
|
13492
13497
|
}
|
|
13493
13498
|
static parseWayProperties(osmWay) {
|
|
13499
|
+
let wheelchair = OsmTagsUtils.getWheelchair(osmWay.tags);
|
|
13500
|
+
if (wheelchair === "limited") {
|
|
13501
|
+
wheelchair = void 0;
|
|
13502
|
+
}
|
|
13494
13503
|
return {
|
|
13495
13504
|
...osmWay.id && { externalId: osmWay.id },
|
|
13496
13505
|
...OsmTagsUtils.elementName(osmWay.tags) && { name: OsmTagsUtils.elementName(osmWay.tags) },
|
|
@@ -13501,7 +13510,7 @@ const _OsmGraphUtils = class _OsmGraphUtils {
|
|
|
13501
13510
|
...OsmTagsUtils.isMovingWalkway(osmWay.tags) && { isMovingWalkway: OsmTagsUtils.isMovingWalkway(osmWay.tags) },
|
|
13502
13511
|
...OsmTagsUtils.needTicket(osmWay.tags) && { needTicket: OsmTagsUtils.needTicket(osmWay.tags) },
|
|
13503
13512
|
...OsmTagsUtils.getIncline(osmWay.tags) && { incline: OsmTagsUtils.getIncline(osmWay.tags) },
|
|
13504
|
-
...
|
|
13513
|
+
...wheelchair && { wheelchair },
|
|
13505
13514
|
...OsmTagsUtils.getSmoothness(osmWay.tags) && { smoothness: OsmTagsUtils.getSmoothness(osmWay.tags) },
|
|
13506
13515
|
...OsmTagsUtils.getSurface(osmWay.tags) && { surface: OsmTagsUtils.getSurface(osmWay.tags) }
|
|
13507
13516
|
};
|
|
@@ -13614,7 +13623,7 @@ const _OsmGraphUtils = class _OsmGraphUtils {
|
|
|
13614
13623
|
}
|
|
13615
13624
|
}
|
|
13616
13625
|
});
|
|
13617
|
-
|
|
13626
|
+
const routingBounds = {
|
|
13618
13627
|
type: "MultiPolygon",
|
|
13619
13628
|
coordinates: []
|
|
13620
13629
|
};
|