Pete@Raspberry
New Member
- Joined
- 18 May 2018
- Messages
- 3
Hello all
I have some code that reads the RSPS5045 fare files to extract point to point fares. This is used commercially by some TOCs (but not for selling tickets). I'm having a spot of bother working out how some fares get calculated, and I was wondering if anyone here could perhaps point me in the right direction.
One customer has just reported a gap in the data; for the journey Romiley to Manchester Piccadilly no fares were found. If we look at the same journey on BRFares:
http://www.brfares.com/#expert?orig=RML&dest=MAN
then it is clear that the flow chosen is based on MAN (2968) being a member of a group called MANCHESTER CTLZ (0451). That's fine; I can see 0451 in the LOC data, and that it is indeed in Manchester. But I can't see how MAN is related to it.
Looking at bit deeper into the data, the LOC file includes groups of stations. MAN is a member of 4 groups:
0438 Manchester stations
G238 Metrolink zone H
H169 Manch & bus
J819 Manchester and bus
but none of these seem to relate to 0451.
The clusters FSC file also includes MAN as a member of 7 clusters:
Q812
Q814
Q836
Q837
Q902
Q934
QB40
But again, these don't relate to 0451. Also clusters seem to me to be too big a geographical grouping for what is ultimately a short rail journey!
Interestingly there is a flow between ROMILEY and G238 (one of the groups) and with a bit of work to the data this was being found. But it's not the same flow as the one presented by BRFares. A comparison with National Rail would suggest that BRFares is (of course) correct to present this flow.
So: How do you get from NLC 2968 to 0451? Any suggestions gratefully received!
Many thanks
Pete
I have some code that reads the RSPS5045 fare files to extract point to point fares. This is used commercially by some TOCs (but not for selling tickets). I'm having a spot of bother working out how some fares get calculated, and I was wondering if anyone here could perhaps point me in the right direction.
One customer has just reported a gap in the data; for the journey Romiley to Manchester Piccadilly no fares were found. If we look at the same journey on BRFares:
http://www.brfares.com/#expert?orig=RML&dest=MAN
then it is clear that the flow chosen is based on MAN (2968) being a member of a group called MANCHESTER CTLZ (0451). That's fine; I can see 0451 in the LOC data, and that it is indeed in Manchester. But I can't see how MAN is related to it.
Looking at bit deeper into the data, the LOC file includes groups of stations. MAN is a member of 4 groups:
0438 Manchester stations
G238 Metrolink zone H
H169 Manch & bus
J819 Manchester and bus
but none of these seem to relate to 0451.
The clusters FSC file also includes MAN as a member of 7 clusters:
Q812
Q814
Q836
Q837
Q902
Q934
QB40
But again, these don't relate to 0451. Also clusters seem to me to be too big a geographical grouping for what is ultimately a short rail journey!
Interestingly there is a flow between ROMILEY and G238 (one of the groups) and with a bit of work to the data this was being found. But it's not the same flow as the one presented by BRFares. A comparison with National Rail would suggest that BRFares is (of course) correct to present this flow.
So: How do you get from NLC 2968 to 0451? Any suggestions gratefully received!
Many thanks
Pete