Skip to content

Commit

Permalink
fix(add-trips): set route type #465
Browse files Browse the repository at this point in the history
The mode of travel for added trips (routes) still can't be set in the UI, but this change at least copies over the default value (bus) from the AddTrips modification class.
This has been confirmed to work - when bus is deselected in the UI, added routes are not considered.
It should suffice to include a mode property in the modification JSON.
  • Loading branch information
abyrd committed Nov 21, 2018
1 parent bb88602 commit 076f8f3
Showing 1 changed file with 1 addition and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ public boolean apply (TransportNetwork network) {
info.route_short_name = "";
info.route_long_name = this.comment;
info.route_id = this.routeId;
info.route_type = this.mode;
info.color = "4444FF";
this.routeIndex = transitLayer.routes.size();
transitLayer.routes.add(info);
Expand Down

0 comments on commit 076f8f3

Please sign in to comment.