In particular I found a train 4500, a Broken Hill to Port Pirie concentrate train listed as a train from Newcastle to Werris Creek.
How you automatically tell a train from its number remains a problem, given four digit numbers mean different things in different states.
Train running numbers vs origin/destination/cargo are translated via a lookup table, which is obviously incomplete. I don't have 4500 listed on my spreadsheet so I'll add that. What is its return (empty) running number?
It's simple enough to determine if the train is within a particular state (they do have lat/lon co-ordinates, after all) which eliminates a number of combinations. Then it checks the listed locomotive (if known) to further narrow the possible combinations.
I just checked the latest MTP :
The empty from Port Pirie to Broken Hill is 4500S
The loaded from Broken Hill to Port Pirie is 5455S
So the empty is an up train and the loaded is a down train (which is "correct" between Port Pirie and Crystal Brook in each direction)
I'm pretty sure the train wasn't displaying the "S" suffix in Broken Hill.
The S means the train runs entirely in South Australia, which clearly isn't true, but perhaps it runs on the tracks of the former SAR for its full distance.
The train doesn't change numbers in Crystal Brook, but the empty takes advantage of the triangle to turn the NR class, which runs long hood first from Port Pirie.
I chased this train in both directions between Port Pirie and Gladstone in January while photographing other traffic.
One other train I saw was 1513, currently (as I post) loading grain behind FQ 03 in Gladstone.
This doesn't appear in the October MTP. Are GWA grains run "as required"? I recall the return is 5114.
So "5" seems to apply to anywhere on the Broken Hill line beyond Crystal Brook. I'm not sure if it went to Peterborough if it would have a different train number....
Some further thoughts:
If the title "Cargo" in the pop-up were to be changed to "Consist" it would match "Passenger" better than it does now.