News for hackers. Stuff that matters.
Re:London's Oyster card: Are its days numbered? by tialaramex on Friday September 10, 2021 @08:14PM (#28488283)
Yes, although it's not exactly retrospective. The trick is, each time it sees your card the system is trying to figure out what the minimum price it could charge is for everything that happened so far. The fares are designed such that it can't ever be cheaper to do more journeys†, however it might not be more expensive, so the extra cost of any completed journey is always going to be somewhere between £0 and the maximum peak single fare.

This happens live because you are shown the current balance (which needs this calculation) when completing journeys in some places, and can also check it from outside the system.

So you can see that a journey you just made cost say 10p even though obviously there are no fares that low, because 10p was the difference between the cheapest way to do your previous set of journeys, and the cheapest way to do all those journeys plus the new one.

† There are sometimes weird corner cases where e.g. travelling one extra stop and walking back is slightly cheaper but that's a different journey not an extra one.

There are no comments on this comment yet.