conveyal / r5

Developed to power Conveyal's web-based interface for scenario planning and land-use/transport accessibility analysis, R5 is our routing engine for multimodal (transit/bike/walk/car) networks with a particular focus on public transit
https://conveyal.com/learn
MIT License
281 stars 73 forks source link

Scenario-added routes are always trams #465

Closed abyrd closed 5 years ago

abyrd commented 5 years ago

When enabling or disabling transit modes in an analysis, all routes added by scenarios are treated as trams.

There is no UI element to set the mode of a newly added route, but when an AddTrips object is initialized, its mode = Route.BUS. Applying this modification to the network does not copy the mode info into the new instance of com.conveyal.r5.transit.RouteInfo, which is where the router looks for it. So the field com.conveyal.r5.transit.RouteInfo#route_type remains uninitialized at 0, which in GTFS means "tram".

ansoncfit commented 5 years ago

Related: https://github.com/conveyal/analysis-ui/issues/806