public-transport / fpti-js

Standardized API for public transportation client libraries in JavaScript.
Creative Commons Attribution Share Alike 4.0 International
9 stars 0 forks source link

ArrivalBefore or arrivalAfter for stopovers? #5

Open ialokim opened 6 years ago

ialokim commented 6 years ago

The stopovers method supports the two options departuresAfter and arrivalBefore as discussed in #2 which is consistent with the options provided by journeys.

When querying for journeys, this is just fine, because most of (if not all) public transport APIs return journeys with an arrival before the given arrival time. But in the case of stopovers (so, departures and arrivals), the behavior tends to be different and to return public transport services arriving at the given station after the given time. (That's what the user would also expect, IMHO).

The option arrivalBefore seems misleading here. It would be good to be consistent with journeys options, but I think we should discuss the naming again (especially mentioning @derhuerst here as he had the idea in the issue mentioned above).

juliuste commented 6 years ago

You're right 😄