-
-
Notifications
You must be signed in to change notification settings - Fork 4
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[OTP2] otp_get_times only returns one itinerary - first itinerary always walk #13
Comments
@matt-wirtz Currently What https://groups.google.com/g/opentripplanner-users/c/xz6LD9Y13Vo/m/a-S2DxHvCQAJ. OTP does not always return a WALK itinerary first. It would only do so if this was considered the "best" itinerary given the parameters. This would normally mean that it is a very short journey (but this will depend, for example, on the I could potentially change otpr to return all the suggested itineraries in the dataframe. This didn't seem particularly useful when the functionality was originally planned. I was happy to leave it to OTP to determine the best itinerary. If that is what you'd prefer I can mark this as an enhancement request for consideration. Also, please note that OTPv2 support in otpr is currently experimental. Explanation above relates to OTPv1. With the recent first release of OTP2 I will need to do more testing. |
Thanks for the explanation. I think your approach is fine to only take the itinerary that is considered as "best" by the OTP-server. But indeed I would then change the help text of the otpr package in order to reflect this behavior. So changing this: And I have to figure out, why the quickest itinerary is not returned as the first one by my OTP-server even when specifying "optimize=QUICK". |
QUICK is the default behaviour, as far as I know. I don't think that means the first itinerary will necessarily be the quickest though, due to the range of factors being taken into account. |
@matt-wirtz I'm doing some more testing with OTP2 and am seeing the same behaviour, OTP returning an implausible walking route as the first itinerary. I've opened an issue on the opentripplanner repository to try and find out why this is happening: |
Hi @marcusyoung. Good to here that this issue is not related to my setup or my data. I was unsure about that and posted the issue to the user group first: https://groups.google.com/u/1/g/opentripplanner-users. But this behavior seems to be a real bug then. p.s.: because of this issue with OTP2 I downgraded to OTP1.5 and the otpr package runs smooth. |
Confirmed as an OTPv2 bug: opentripplanner/OpenTripPlanner#3289 When bug is fixed, it looks like otpr should only append "WALK" to the TRANSIT modes for OTPv1, and not OTPv2. |
otp_get_times only returns one itinerary
The help text says that if there is no error and
detail
is TRUE thenitineraries
are returned as a dataframe. So if OTP server returns more than one itinerary I assume that all itineraries should be returned here too. But this is not the case. Only the first one is returned.How to reproduce
Call otp_get_times and check the returned itineraries dataframe.
Expected behavior
All itineraries returned by the OTP server should be included in the itineraries dataframe.
Version:
Additional notes
I'm assuming here that all itineraries delivered by the OTP are returned. If this assumption is false and only one itinerary shall be returned then the question is which one is returned.
To me it looks like when querying OTP for TRANSIT trips it always returns a WALK only itinerary first and the TRANSIT trips are following. In this case it would be misleading to only focus on the first itinerary.
The text was updated successfully, but these errors were encountered: