Closed abyrd closed 8 years ago
Hi @abyrd,
I'm trying to fix this issue, but I have a few questions regarding the Cable Car mode:
calcPlatform(TraverseModeSet mode)
in org.opentripplanner.routing.impl.CandidateEdge
? Should the Cable Car platform indeed receive the value StreetEdge.CLASS_OTHER_PLATFORM
, or was this originally not intended? (code here at line 198)I added a Pull Request which fixes the issue. Regarding the questions I asked, I made the following choices:
StreetEdge.CLASS_OTHER_PLATFORM
class.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?
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?
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).
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.