Hi Chris,
Spent some time sharding this exact logic recently for my Sentinel project. There's two distinct issues with the codes you provided. I can't help you with the first set of codes, but I can help you with the second set.
I found no alternative logic definitions for the
London Boundary Zones, I think it's safe to say that you can alias the second set of codes to the first set unless your use case requires otherwise. This definitely isn't an optimal solution, but it's the only solution that comes to mind.
Attached is a document I've made of the stations that make up the Capitalcard zones.
https://docs.google.com/document/d/1m-xiZY8svpp71E7BA5J5B3l94cZTtrdnumW3J08NBig/edit?tab=t.0
The methodology here is simple:
- We use the
RSPS5045 data in order to read every
LOCATION using the
RJFAF777.LOC file.
- Every
LOCATION has a
ZONE_NO and
ZONE_IND. If
ZONE_NO is equal to the Capitalcard NLC, then you can be assured it's within that zone. This is
different to how fare groups work, as this only appears in the raw
LOCATION record.
- You can then use the
ZONE_IND to determine the zone of the location.
As long as
ZONE_NO matches what we're looking for, we can conclude it's associated with that Capitalcard Zone.
This method does not work for the Boundary Zones - definitely on my bucket list for figuring that part out.The document was made from the
RJFAF777 data. As it was programmatically generated using the data, the result is 100% deterministic - but let me know if anything's meaningfully missing or potentially incorrect.
If you'd like to verify, you can look at the
ZONE_META column of the table:
- The first two digits are the county code, whether that be 00 or 01.
- The next two characters are the PTE code (making an educated guess here that GL stands for Greater London!)
- The next 4 characters are the NLC code associated with ZONE_NO, this is our key for identifying London zonal data.
- The next 2 characters are the zone index, representing either Zone 1, Zone 2, ..., Zone 6.
Best regards,
|
Mikey Whiston
Systems Architect | Security Researcher |