Skip to content

[OTP2] otp_get_times only returns one itinerary - first itinerary always walk #13

@matt-wirtz

Description

@matt-wirtz

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    OTP issueIssues relates to OTP rather than otpr

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions