Skip to content

Missing Parameters in API Request #35

@Repsay

Description

@Repsay

Issue: Missing Parameters in API Request

The API no longer accepts the following parameters in the request:

  • previousAdvices: prev_advices
  • nextAdvices: next_advices

This change leads to unexpected behavior when loading trip data. Without these parameters, it is unclear how to properly request trips that differentiate between past and future departures.

Current Workaround:

I am currently checking whether the first object in the returned list occurs before the requested travel time. If it does, I discard it, as my use case only requires future departures. However, this is a temporary solution and may not be reliable.

Problem:

I am unsure how this issue should be addressed with the current API implementation. If there are alternative parameters or a new method for achieving this functionality, please provide clarification or update the documentation.

Steps to Reproduce:

  1. Make a request to the API without the previousAdvices and nextAdvices parameters (since they are no longer supported).
  2. Observe the inability to differentiate between past and future departures in the response.
  3. Attempt to filter departures based on the requested travel time.

Expected Behavior:

The API should:

  1. Continue supporting the previousAdvices and nextAdvices parameters, or
  2. Provide alternative parameters or guidance for filtering past and future trips effectively.

Additional Context:

This issue affects applications that require precise filtering of departures for trip planning purposes.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions