Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 19, 2009 10:57:54 GMT
A query as to how Oyster logic works - if I have reached a cap limit for some zones, say zones 1-4, and then make make a journey into extra zones (say from 1-6) does the system charge a) the fare from the existing cap zone boundary (i.e. two zone (5-6) fare in this case) b) fare from the last station within existing cap zone boundary (i.e. three zone fare (4-6) in this case) c) fare for journey actually made (i.e. six zone (1-6) fare in this case) - any of which may reach the new (1-6) zones cap limit; or d) the difference between the old and new used zone caps (1-4 & 1-6 in this case) as such.
I assume that if I have a (period) travel card for the old zones (1-4), then (a) is the option used (is this correct?), and in my view this is is what should happen with PAYG capping.
|
|
|
Post by cetacean on May 19, 2009 11:50:04 GMT
The answer is (c).
The thing to remember is that journeys you've paid for in Z1-4 *also* contribute towards the 1-6 cap. You're then charged for a 1-6 journey, and the total is capped at the Z1-6 price.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 19, 2009 12:41:01 GMT
As I understand it, if your zone 1-4 cap was at the peak rate (£9.50) and you travel to zone 6 off peak then the fare from zone 4-6 would apply (£1.10) to cover the additional journey as that is the cheapest valid way to calculate the fare for the journeys you will have made.
But if this trip to zone 6 means the balance of journeys you made makes an off peak zone 1-6 fare plus a separate charge for the peak journeys cheaper, then that will instead apply. Although that is pretty difficult to achieve!
Say you made two zone 1-4 journeys during the morning peak (2 x £2.80 = £5.60). You then repeat the same again after the peak period has ended (2 x £2.20 = £4.40). The peak cap (£9.50) will apply as the cheapest fare.
You then make two off peak return journeys from zone 4-6 (4 x £1.10). The off peak zone 1-6 cap plus two peak zone 1-4 journeys (£7 + £5.60 = £12.60) works out cheaper than the originally charged zone 1-4 peak cap plus the four off-peak zone 4-6 journeys (£9.50 + £4.40 = £13.90) and so the cap being applied will change.
That is my understanding of how the system works, anyway.
|
|
|
Post by cetacean on May 19, 2009 16:50:15 GMT
As I understand the starting point for each journey is the full single fare. The Oyster system keeps there are separate totals stored for each cap, and each time you pay for a journey the money is added to *all* applicable totals. If the single fare makes any applicable counter reach its cap (or one has already reached it), then you end up paying less (or nothing at all) for the journey. Crucially, the counters are only incremented by the amount you actually end up paying for any journey.
In the scenario above, the off-peak Z1-6 total is at £3.90 at the same time as the £9.50 peak Z1-6 cap is reached (since you only pay £3.90 for the off-peak Z1-4 journeys, due to the cap). When you then make the extra Z4-6 off-peak journeys, you're charged £3.10 before the Z1-6 counter reaches its £7 cap and you stop being charged. Which brings you to £12.60.
So the result is the same, but the system never makes an explicit decision as to which cap to apply, or which combination of singles and travelcards to pretend you bought.
(I should add that the above is how I would approach the problem as a programmer, and how I think they've approached it. I have no inside info on how things actually work)
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 20, 2009 1:12:13 GMT
Just been thinking through what cetacean has said, and understand the logic of it... wondering if it is what is done.
One issue is that as Z1-2 + Z2-6 caps where one is peak & one off-peak < peak Z1-6 cap , final charge for day is dependant on actual journeys made, as well as zones travelled in (and you can save by buying 2 separate ODTCs).
Also the fact that (Z1-4 peak cap) < ((Z1-2 peak cap) + (Z1-6 off peak cap)) < (Z1-6 peak cap) and such has 'interesting' implications for his approach.
Which leads to an interesting query - if I make early (peak) journeys in Zones 1 & 2 (to hit its cap of £6.70); and then make additonal (off peak) journeys out to Zone 4 to hit another cap - what should (giving TfL's capping promises/statements - this is the 'right' answer that Oyster should come up with) I end up paying for the day - £6.70 (given that the OP Z1-4 cap at £5.80 is less) or £9.50 (Peak Z1-4 cap)?
|
|
|
Post by cetacean on May 20, 2009 9:31:28 GMT
£9.50. None of your morning journeys contribute towards your OP Z1-4 cap, so you keep being charged until you hit the £9.50 Peak cap. I'm not sure I see the conundrum here.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 20, 2009 12:03:12 GMT
The conundrum comes from loose wording in the TfL fares and tickets information (See here ): "Daily price capping is the most you will be charged a day when you use Oyster to pay as you go on bus, Tube..." - and Peak travel
A peak cap will apply if you travel on bus, Tube, tram, DLR, London Overground and some National Rail services between:
* Monday-Friday 04:30-09:29
If the total cost of your journeys is less than the peak cap, you will be charged separately for any journeys taken during peak hours, plus the off-peak cap.
Off-peak travel
An off-peak cap will apply if you travel between:
* Monday-Friday from 09:30-04:29 (the following day) * Saturdays, Sundays and public holidays from 04:30-04:29 (the following day) - and how the various caps inter-relate. While logically thinking £9.50 is what I should pay (and expect Oyster to charge), I'm not convinced that what TfL has written doesn't lead to £6.70.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 20, 2009 13:17:14 GMT
So the result is the same, but the system never makes an explicit decision as to which cap to apply, or which combination of singles and travelcards to pretend you bought. (I should add that the above is how I would approach the problem as a programmer, and how I think they've approached it. I have no inside info on how things actually work) I am sorry to say you have completely lost me, and that is as someone with programming experience myself! (Thankfully more pushing data around than calculating anything). It sounds like you are saying that for every traveller the system holds in memory a separate count against each cap level. But with 20 of them that sounds terribly inefficient, so I am sure I must have something wrong there? But however it is worked out internally, from the public facing perspective it gives the appearance than the total being charged is simply recalculated every time you exit the system (tube, train, DLR) or enter (bus, tram). It needs to at least seem like it is making that explicit decision of which cap to apply. Using my example it would go something like this: ---PEAK--- Zone 4-1 : £2.80 Zone 1-4 : £2.80 (=£5.60) ---OFF PEAK--- Zone 4-1 : £2.20 (=£7.80) Zone 1-4 : £1.70 (=£9.50) part fare to reach P Z1-4 cap Zone 4-6 : £1.10 (=£10.60) Zone 6-4 : £1.10 (=£11.70) Zone 4-6 : 90p (=£12.60) part fare to reach OP Z1-6 cap + separate peak journeys Zone 6-4 : 0 (=£12.60) covered by cap At any point you should be able to check the balance on your card and work out what cap has been applied.
|
|
|
Post by cetacean on May 20, 2009 18:13:29 GMT
I am sorry to say you have completely lost me, and that is as someone with programming experience myself! (Thankfully more pushing data around than calculating anything). It sounds like you are saying that for every traveller the system holds in memory a separate count against each cap level. But with 20 of them that sounds terribly inefficient, so I am sure I must have something wrong there? The Oyster system has very limited data rate and very limited time/resources to do calculations. Downloading a few bytes of totals and doing some basic arithmetic seems more likely to me than downloading the whole day's journey history and futzing about working out possible steps for different combinations of tickets. Remember capping is implemented entirely on the card/reader. The central system never needs to know the internal workings of capping. But it never explicitly tells you "we charged you this cap for these journeys, and this much for these other journeys". So I don't think that's what they do at all. Here's the step by step of how I think it works: 1.Work out the zones used and whether peak/off-peak etc, and what the full single fare would be. 2. Make a list of all caps that completely cover the journey (so a Z1-4 off-peak journey is part of the the Z1-4 peak and off-peak caps, as well as the Z1-6 peak and off-peak caps, and so on) 3. Download the current totals for those caps from the card (or altenraitvely download the journey history and recalculate them) 4. See if any of those caps are at or near their limit. If so, reduce the fare charged to the amount needed to reach the cap (or to zero). If not, charge the full fare. This is the actual fare charged. 5. Increment all of those caps by that charge and write them back to the card 6. Deduct the fare to the account balance (and update the journey history etc) None of these steps require complex computation or large amounts of data exchange. We've all seen step number (4) happen, which is the most direct evidence I have that this is the implementation.
|
|
|
Post by mattdickinson on May 21, 2009 14:19:45 GMT
|
|
Phil
In memoriam
RIP 23-Oct-2018
Posts: 9,473
|
Post by Phil on May 21, 2009 16:51:39 GMT
Err...yes.....I think..... It's on pages 237-239 (of 239!!). A lot there: I'm a degree scientist but I can't find the bit to cover the original question of what the cap is when there are journeys both in and out of the peak. If it's there, it's mighty well hidden.
|
|
|
Post by miztert on May 21, 2009 17:37:57 GMT
It's on pages 237-239 (of 239!!). A lot there: I'm a degree scientist but I can't find the bit to cover the original question of what the cap is when there are journeys both in and out of the peak. If it's there, it's mighty well hidden. I can't see what the problem is here either. If you make journeys both in and out of the peak, then the system will charge the cheapest combination of fares and/or caps. So you will either be charged for whatever your peak journey(s) you make plus whatever Off-peak cap you reach after 09:30, or you will be charged for the Peak cap. As a very general rule of thumb, I'd say most people are only ever likely to hit the Peak cap if they make several Peak-time journeys (i.e. before 09:30 on weekdays) - it does depend on the specific circumstances though.On numerous occasions when using Oyster PAYG I have made a journey during the morning Peak (before 09:30) and then made further journeys after 09:30, and had the Off-Peak cap applied to my journeys after 09:30 and have thus paid for the pre-09:30 journey 'separately' (i.e. it wasn't included in the capping). In addition, the cap that gets applied can and does change as the day goes on and you travel out into further zones. It's a fairly smart system!
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 21, 2009 20:27:20 GMT
Err...yes.....I think..... It's on pages 237-239 (of 239!!). A lot there: I'm a degree scientist but I can't find the bit to cover the original question of what the cap is when there are journeys both in and out of the peak. If it's there, it's mighty well hidden. It actually starts on page G-2 (204 of 237) - there are several bits on capping (amongst all the other stuff that's going on!).... I think I've made head and tail of it all, but aren't convinced (there's a comment that a worked example would have been useful!!) One thing that is apparent is that internally the system uses three capping levels (peak, off-peak and all-day - which increase as you use more zones). Quite what the relation is (or should be) between these I'm not sure, also whether (not necessarily justified) assumptions have been made. In particular what should be/is the result of making a zone 1-2 journey during the peak (£2.20), and a lot of zones 2-6 (or intermediate) journeys off-peak (but not going into/through z1)? The applicable off-peak cap should be £4.60, to give a total of £6.80.
|
|
|
Post by cetacean on May 21, 2009 23:10:04 GMT
One thing that is apparent is that internally the system uses three capping levels (peak, off-peak and all-day - which increase as you use more zones). If you look at page G-10 you'll see the "peak" caps are exactly the same as the "all-day" caps. This is because there's no peak-only cap in the current fares regime (what they call "peak" in the fares leaflet is actually an all-day cap in the implementation). The steps I outlined above are more-or-less exactly what the document describes. Your morning peak journey doesn't contribute at all to the Z2-6 cap total, so you get charged the up to the full Z2-6 cap for your later journeys. It also makes clear at the bottom of page G-6 that (to answer the very first question in this thread) that the amount charged is always the full end-to-end uncapped fare when no cap applies. So if you've hit the Z1-4 cap and you make a Z1-6 journey, you get charged for Z1-6 rather that Z4-Z6. (Thanks for posting the link, matt)
|
|
|
Post by cetacean on May 21, 2009 23:11:22 GMT
In addition, the cap that gets applied can and does change as the day goes on and you travel out into further zones. But it doesn't! All caps apply at all times. There are just some you haven't hit yet.
|
|
Deleted
Deleted Member
Posts: 0
|
Post by Deleted on May 30, 2009 15:34:42 GMT
Thanks for posting that link, Matt. Fascinating. Will need to find the time to properly read it now!
|
|