@wemap/routers 11.0.0-alpha.20 → 11.0.0-alpha.22
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
CHANGED
|
@@ -419,7 +419,7 @@ class Itinerary {
|
|
|
419
419
|
return {
|
|
420
420
|
from: this.from.toCompressedJson(),
|
|
421
421
|
to: this.to.toCompressedJson(),
|
|
422
|
-
duration: this.duration,
|
|
422
|
+
duration: Number(this.duration.toFixed(1)),
|
|
423
423
|
mode: this.mode,
|
|
424
424
|
legs: this.legs.map((leg) => leg.toJson()),
|
|
425
425
|
...this.startTime !== null && { startTime: this.startTime },
|
|
@@ -996,6 +996,11 @@ class CitywayRemoteRouter extends RemoteRouter {
|
|
|
996
996
|
name: jsonPathLink.Departure.Site.Name
|
|
997
997
|
});
|
|
998
998
|
}
|
|
999
|
+
if (jsonSection === trip.sections.Section[trip.sections.Section.length - 1]) {
|
|
1000
|
+
minStepsInfo.push({
|
|
1001
|
+
coords: legCoords[legCoords.length - 1]
|
|
1002
|
+
});
|
|
1003
|
+
}
|
|
999
1004
|
} else if (isRoutingModePublicTransport(legMode)) {
|
|
1000
1005
|
legFrom = {
|
|
1001
1006
|
name: jsonLeg.Departure.StopPlace.Name,
|