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

Provide the whole route to have connection fares #848

Closed
NicolasAU35 opened this issue Jan 23, 2025 · 3 comments
Closed

Provide the whole route to have connection fares #848

NicolasAU35 opened this issue Jan 23, 2025 · 3 comments
Assignees
Labels
question Further information is requested
Milestone

Comments

@NicolasAU35
Copy link

Hello,

For connection fares, what is the OSDM recommendation?
Is the Distributor should send all the route, to have this type of fare from the Product provider?

Best regards,
Nicolas

@jspetrak jspetrak added the question Further information is requested label Jan 23, 2025
@jspetrak jspetrak moved this to To do in OSDM Specification Jan 23, 2025
@jspetrak jspetrak added this to the 3.5.0 milestone Jan 23, 2025
@jspetrak
Copy link
Collaborator

jspetrak commented Jan 23, 2025

Distributor can either pre-load fares using "OSDM Offline" and search in that fare data. Or can query fares online based on trip search criteria/trip specification from the provider. That way it obtains only fares relevant for the connection. It may still need to maintain some local logic when there is need to split query among 2..N providers for multi-country or multi-carrier trips.

In both cases, distributor obtains those fares and builds offers from them.

@CGantert345
Copy link
Contributor

Sending the complete route is important to apply the VAT rules properly. In some countries the VAT is zero for international journeys. The pricing with zero VAT will be applied only if the route is international.

@ralfbayer-db
Copy link
Collaborator

ralfbayer-db commented Jan 24, 2025

The fact that the trip is international can be specified by the TripSpecification.isPartOfInternationalTrip flag, so VAT can be properly calculated even if only the requested part of the trip is given.

OfferTags can further be used to identify "compatible" offers for different parts of a trip.

It may also be difficult for a provider to understand the full trip in case of local station codes (e.g. trip from a bus station in Frankfurt (which doesn't have a UIC code) to a bus station in Stockholm (which doesn't have one either).

@jspetrak jspetrak moved this from To do to Done in OSDM Specification Jan 24, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
Development

No branches or pull requests

4 participants