opentripplanner / OpenTripPlanner

An open source multi-modal trip planner
http://www.opentripplanner.org
Other
2.21k stars 1.03k forks source link

Remove TRAINISH and BUSISH #2218

Closed abyrd closed 8 years ago

abyrd commented 8 years ago

The TRAINISH and BUSISH modes seem like a mistake and should probably be removed. No one intuitively knows what they mean, they make the available modes non-mutually-exclusive, and as far as I know they are not used anywhere.

mvandertuin commented 8 years ago

Hi @abyrd,

I'm trying to fix this issue, but I have a few questions regarding the Cable Car mode:

mvandertuin commented 8 years ago

I added a Pull Request which fixes the issue. Regarding the questions I asked, I made the following choices:

3vivekb commented 8 years ago

We are having a weird issue where if BUSISH and TRAINISH is selected, the algorithm will happily have a person take light rail to get to the destination. But if BUSISH is not selected, the person won't take light rail and would rather walk. Is this a related issue?

abyrd commented 8 years ago

In the code:

    private static final int MODE_TRAINISH = MODE_TRAM | MODE_RAIL | MODE_SUBWAY | MODE_FUNICULAR | MODE_GONDOLA;
    private static final int MODE_BUSISH = MODE_CABLE_CAR | MODE_BUS;

These modes are counterintuitive and should really just be removed (and we have a PR to do that), but BUSISH should only affect cable cars and buses. @3vivekb maybe your input data has the light rail defined as a bus?

3vivekb commented 8 years ago

Hey @abyrd , We checked out GTFS and light rail isn't defined as bus. We went from v 19 to v 20 and it seems to be working better (sometimes walk + train + bus is slower than walk + train).