View Single Post
Unread 30-11-2012, 16:46   #3
Mark Gleeson
Technical Officer
 
Mark Gleeson's Avatar
 
Join Date: Dec 2005
Location: Coach C, Seat 33
Posts: 12,669
Default

Sure does, still need to check what the station level machines do, but online this is what Irish Rail quote and it maps to the correct fare for the distance. Note we have a bit of problem, booking office fare Limerick Ballybrophy goes via Limerick Junction, but the TVM goes via Nenagh (logically the shorter route) and charges less.

Its a legit fare and since you change at Connolly and Heuston (Luas is actually included on the ticket!) its hard to catch you as break of journey is allowed*

We are working on adding switches so you can
1) Run the fare calc in Irish Rail quirks mode (default)
2) Logical shortest possible rail route
3) Enable/disable the future distance zone rules (this new zone is indicated in results currently)

When we get the data we will add the Northern Irish network in as a well for journeys originating in the Republic

We in theory now can generate the any to any fares matrix thanks to a bit of graph theory we can do in a fraction of second what currently takes Irish Rail weeks to do manually if they had to redo the system "single-source shortest path problem for a graph with nonnegative edge path costs, producing a shortest path tree." http://en.wikipedia.org/wiki/Dijkstra%27s_algorithm

* Note RUI never condones fare evasion or breach of T&C's however this is more like tax avoidance as distinct from tax evasion, grey

Last edited by Mark Gleeson : 30-11-2012 at 16:57.
Mark Gleeson is offline   Reply With Quote