@wemap/routers 13.1.0 → 13.1.1
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.d.ts +1 -1
- package/dist/index.js +2 -2
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +5 -1
- package/dist/index.mjs.map +1 -1
- package/dist/src/graph/Edge.d.ts +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -2494,6 +2494,8 @@ const _GraphRouterOptionsBuilder = class _GraphRouterOptionsBuilder {
|
|
|
2494
2494
|
const profile = this.isWheelchair ? "wheelchair" : "default";
|
|
2495
2495
|
const factor = SURFACE_FACTORS[profile][edge.properties.surface] ?? 1;
|
|
2496
2496
|
duration *= factor;
|
|
2497
|
+
} else if (edge.properties.wheelchair === "limited") {
|
|
2498
|
+
duration *= 0.5;
|
|
2497
2499
|
}
|
|
2498
2500
|
return duration;
|
|
2499
2501
|
};
|
|
@@ -4611,7 +4613,8 @@ class TictactripRemoteRouter extends RemoteRouter {
|
|
|
4611
4613
|
endTime: new Date(segment.arrivalLocalISO).getTime(),
|
|
4612
4614
|
transportInfo: {
|
|
4613
4615
|
name: segment.provider.name,
|
|
4614
|
-
price: segment.priceCents / 100
|
|
4616
|
+
price: segment.priceCents / 100,
|
|
4617
|
+
directionName: segment.destination.name
|
|
4615
4618
|
},
|
|
4616
4619
|
steps: stepsBuilder.build()
|
|
4617
4620
|
});
|
|
@@ -14097,6 +14100,7 @@ export {
|
|
|
14097
14100
|
getDirectionFromAngle,
|
|
14098
14101
|
getDurationFromLength,
|
|
14099
14102
|
isStepLevelChange,
|
|
14103
|
+
isTransitModePublicTransport,
|
|
14100
14104
|
routerRequestToJson
|
|
14101
14105
|
};
|
|
14102
14106
|
//# sourceMappingURL=index.mjs.map
|