-
Notifications
You must be signed in to change notification settings - Fork 1
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
Provide prices/fares for each leg #11
Comments
I found some examples of how APIs from other companies are structured when they have to deal with prices/fares: Google Flights: DeinBus.de: The one from Google is of course very complete, but probably too much information and therefore it could get too complicated. Data structure proposal:The simplest structure I can think of, similarly to the one used by DeinBus.de, would be something like:
Where?The other question would be where to implement this.
Include it inside "Journey detail response"Would it be possible to include it inside "Journey detail response" as follows?
PROs: No need to create a new response format --> easier to implement by DB? Create a 5th response formatWould it be possible to include a 5th response format, together with "Location response", "Departure board response", "Arrival board response" and "Journey detail response"?
PROs: Independent requests, that could be much easier to perform, similarly to "Departure board response". |
It would be very useful that the API provides the updated price information.
My first thought would be to include it inside Journey Detail, but I'm not sure what would be the best way.
Does that make sense?
The text was updated successfully, but these errors were encountered: