Train GraphicClick on the map to explore geographics
 
I need help
FAQ
Emergency
About .
Travel & transport from BBC stories as at 20:15 10 Jan 2025
 
* Three teens arrested over boy's bus station death
* Two million discounted tickets up for grabs in rail sale
Read about the forum [here].
Register [here] - it's free.
What do I gain from registering? [here]
 14/01/25 - Rail Sale starts
24/01/25 - Westbury Station reopens
24/01/25 - LTP4 Wilts / Consultation end
24/01/25 - Bristol Rail Campaign AGM 2025

On this day
10th Jan (2017)
Defibrillators discussion pack published by Network Rail (link)

Train RunningCancelled
16:36 London Paddington to Plymouth
17:18 London Paddington to Swansea
19:04 Great Malvern to London Paddington
19:04 Didcot Parkway to London Paddington
19:36 London Paddington to Worcester Shrub Hill
23:03 Salisbury to Portsmouth & Southsea
23:14 London Paddington to Oxford
Short Run
17:03 London Paddington to Penzance
18:38 Barnstaple to Exmouth
19:04 Paignton to London Paddington
19:17 Exeter Central to Barnstaple
19:31 Okehampton to Exeter Central
19:35 Exeter St Davids to London Paddington
22:50 Salisbury to Portsmouth Harbour
Delayed
15:03 London Paddington to Penzance
18:59 Gatwick Airport to Reading
19:22 Newquay to Par
PollsThere are no open or recent polls
Abbreviation pageAcronymns and abbreviations
Stn ComparatorStation Comparator
Rail newsNews Now - live rail news feed
Site Style 1 2 3 4
Next departures • Bristol Temple MeadsBath SpaChippenhamSwindonDidcot ParkwayReadingLondon PaddingtonMelksham
Exeter St DavidsTauntonWestburyTrowbridgeBristol ParkwayCardiff CentralOxfordCheltenham SpaBirmingham New Street
January 10, 2025, 20:19:11 *
Welcome, Guest. Please login or register.

Login with username, password and session length
Forgotten your username or password? - get a reminder
Most recently liked subjects
[132] Westminster Hall debate : Railway services to South West
[85] Thames Valley infrastructure problems causing disruption elsew...
[81] Ryanair sues 'unruly' passenger over flight diversion
[72] Mick Lynch announces retirement as head of RMT
[53] GWR Advance Purchase sale - January 2025
[34] Birthday trip, Melksham to Penzance - 28th January 2025
 
News: the Great Western Coffee Shop ... keeping you up to date with travel around the South West
 
   Home   Help Search Calendar Login Register  
Pages: 1 [2]
  Print  
Author Topic: GWR - 3 day seasons under consideration  (Read 4199 times)
stuving
Transport Scholar
Hero Member
******
Posts: 7371


View Profile
« Reply #15 on: July 20, 2020, 16:03:07 »

Possibly a screw-up where the validities for one (rare) ticket type are mistakenly applied to another? I've seen that happen before.

Yes, it's a screw-up, but a worse one than that. The restriction codes that have been defined for these ticket types (NH, NW, NT, NM) already exist for other ticket types. As the restrictions have not been redefined, they are - well, wrong!



It looks as if NH and NM are the same, but for some reason both exist. I've not looked to see if the unpublished restrictions are the same - though obviously they are wrong too.

(I've just cut your quite down to save a bit of space)

I suspect that this all comes down to a problem that was created when P/T seasons came into existence.
There wasn't enough space in the fares database for all the new ticket types that would have been required, so in effect as a ticket TYPE within the fares structure,  P/T seasons don't actually exist.
The days of validity are in fact a routeing.

Perhaps this should be sorted before they're rolled out across the board

I find that hard to believe. Based on the 2017 data feeds definitions data, the big files are Flow (100 MB) and "Non derivable fares override" (50 MB). The Flow file has an entry for each flow and each fare, both huge system-wide lists. For flows the size is limited by grouping stations together, to keep the number well below (number of stations)2. For fares, each item is kept short - just 2 bytes of header, 6 for flow ID, 3 for ticket code, 8 for fare (in pence), and 2 for restriction code.

I'm not sure what's in the NDFO file - it's said to be any fares the standard processing in the system can't cope with. Since TfL» (Transport for London - about)'s capping is mentioned, I suspect this file has grown fast and it's probably this one that will break the system at some stage. Note that these special fares still rely on ticket code and restriction definitons.

The ticket code (what we usually call the type - that term is used differently, and inconsistently, in the data feed system) is three characters. You could have 363 or 24336 of them, and there's nothing like that number now. The codes are defined in the Ticket Types file (told you!) and each is quite long (about 113 bytes). However, the file was still only 130 kB - implying there were only about 1150 codes.

The restriction code is only two characters, giving a maximum of (36)2 or 936. That looks quite likely to run out. The Restrictions file was 4 MB, but it's hard to say how much each code uses. The defining data are spread over many items, and it's not clear how many items are typically needed. Worse, multiple time restrictions use a sequence of Time Restriction Date Bands records, with each time restriction kept in another item in this file. However, if the codes were all used, each would have about 4250 bytes. Now, they could be longer (and thus codes not running out), but I suspect not by much.

There is an item type in that Restrictions file called a Ticket Calendar record. The Days field of this has 7 bytes, defined thus:
Quote
A set of 7 markers each set to ‘Y’ or ‘N’, representing the days of the week. The first character represents Monday. If the marker = ‘Y’, then the restriction applies on this day of the week, between the dates in DATE_FROM/DATE_TO. If the marker is ‘N’, then the restriction does not apply on this day of the week, between the dates in DATE_FROM/DATE_TO.

So that's the right place to code these restrictions. However, to invoke this you'd have to generate six extra restriction codes for each existing restriction code used by a season fare, each copying the existing definitions, and adding one of these new ones.  I suspect some work is going on to find a way of calling this up more directly. Incidentally, the route is part of a flow definition, calling up an machine-readable definition in the Routes file. There's nothing in that to call up a restriction, so this wasn't an "accidental feature" of the system.

Putting the days of use in as a route has an obvious problem - some season fares already have a route. It will need to be shown as one of six extra season ticket types, but as I said I don't think there is a shortage of such codes. The Description (i.e. name) field for ticket codes is only 15 bytes, so some abbreviation will be needed. But it will add complexity, because extra choices inevitably do. Of course there may be better (and probably a bit Oysterish) ways of getting a similar effect.

Logged
Do you have something you would like to add to this thread, or would you like to raise a new question at the Coffee Shop? Please [register] (it is free) if you have not done so before, or login (at the top of this page) if you already have an account - we would love to read what you have to say!

You can find out more about how this forum works [here] - that will link you to a copy of the forum agreement that you can read before you join, and tell you very much more about how we operate. We are an independent forum, provided and run by customers of Great Western Railway, for customers of Great Western Railway and we welcome railway professionals as members too, in either a personal or official capacity. Views expressed in posts are not necessarily the views of the operators of the forum.

As well as posting messages onto existing threads, and starting new subjects, members can communicate with each other through personal messages if they wish. And once members have made a certain number of posts, they will automatically be admitted to the "frequent posters club", where subjects not-for-public-domain are discussed; anything from the occasional rant to meetups we may be having ...

 
Pages: 1 [2]
  Print  
 
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.2 | SMF © 2006-2007, Simple Machines LLC Valid XHTML 1.0! Valid CSS!
This forum is provided by customers of Great Western Railway (formerly First Great Western), and the views expressed are those of the individual posters concerned. Visit www.gwr.com for the official Great Western Railway website. Please contact the administrators of this site if you feel that the content provided by one of our posters contravenes our posting rules (email link to report). Forum hosted by Well House Consultants

Jump to top of pageJump to Forum Home Page