otp_get_times only returns one itinerary
The help text says that if there is no error and detail is TRUE then itineraries 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:
- R: 3.5
- OTP: 2.0.0
- otpr: 0.4.2
- OS: opensuse 15.2
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.
otp_get_times only returns one itinerary
The help text says that if there is no error and
detailis TRUE thenitinerariesare 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.