Skip to content
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

redundant origin / destination / … information in journeys #34

Open
juliuste opened this issue Mar 17, 2018 · 1 comment
Open

redundant origin / destination / … information in journeys #34

juliuste opened this issue Mar 17, 2018 · 1 comment

Comments

@juliuste
Copy link
Member

Right now, journey objects can contain information like departure, arrival, etc. as a shortcut for journey.legs[first].departure or journey.legs[last].arrival.

Since the original idea of FPTF was to allow people to easily write software that works with different APIs "on-the-fly", this imposes a problem. If one API returns data that contains redundant information like this and another doesn't, this practically negates the interchangeability of the two sources (and therefore one of the major benefits in using FPTF). For this reason, it might make sense to agree on one common way to return journey information.

Both @derhuerst and me probably slightly favor not including any redundant information here (forcing people to look directly at the (first and last) legs), since this might prevent some misunderstandings (e.g. when the first/last legs are actually not as important, because they're just "walking" trips).

Opinions? Other proposals?

@derhuerst
Copy link
Member

/cc @deg0nz

@juliuste juliuste mentioned this issue Mar 27, 2018
7 tasks
@juliuste juliuste added this to the 2.0.0 milestone Jul 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Development

No branches or pull requests

2 participants