[gnome-maps/wip/mlundblad/otp-use-walking-routes: 3/5] transitPlan: Add setters for stops and turnpoints
- From: Marcus Lundblad <mlundblad src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-maps/wip/mlundblad/otp-use-walking-routes: 3/5] transitPlan: Add setters for stops and turnpoints
- Date: Thu, 26 Sep 2019 21:55:43 +0000 (UTC)
commit b7a72d95c25d080270d94e8c54e7fa62dc7b6963
Author: Marcus Lundblad <ml update uu se>
Date: Wed Sep 25 22:41:04 2019 +0200
transitPlan: Add setters for stops and turnpoints
Add setters for intermediateStops and
walkingInstructions properties to
allow setting conditionally depending
on if the created leg is transit or
walking, not having to set it at
construct-time.
src/transitPlan.js | 8 ++++++++
1 file changed, 8 insertions(+)
---
diff --git a/src/transitPlan.js b/src/transitPlan.js
index 5e76825..bd21ef2 100644
--- a/src/transitPlan.js
+++ b/src/transitPlan.js
@@ -544,6 +544,10 @@ var Leg = class Leg {
return this._intermediateStops;
}
+ set intermediateStops(intermediateStops) {
+ this._intermediateStops = intermediateStops;
+ }
+
get headsign() {
return this._headsign;
}
@@ -668,6 +672,10 @@ var Leg = class Leg {
return this._walkingInstructions;
}
+ set walkingInstructions(walkingInstructions) {
+ this._walkingInstructions = walkingInstructions;
+ }
+
/* Pretty print timing for a transit leg, set params.isStart: true when
* printing for the starting leg of an itinerary.
* For starting walking legs, only the departure time will be printed,
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]