Mods - feel free to move
During lockdown, I have been working on some software to automatically diagram train service (existing schedules, i.e. finding out which services a particular train will do next).
I thought some on this forum would appreciate some automated way of doing it instead, so I am making this available. It uses the RealTimeTrains API, so many thanks to @Tom for making this available, it is fantastic! You will need a login with the RealTimeTrains API.
It is written in Java, so is run as an executable .jar file, so you will also need Java installed on your computer.
The source code is available at https://github.com/Nunners60007/Diagramming
Feel free to use any component of this, as long as credit is given to me for my parts.
I have attached a tutorial on how to download, set it up and use it. If anything is unclear please ask and I can change it. It is also available at https://docs.google.com/document/d/1vRqScWaFcTPADA4bHGh2Sy4wuYa0W33d2KxOy92AZMY/edit?usp=sharing
The API is currently only available for Simple mode, so it cannot find any ECS movements, so it can sometimes be wrong when one is involved, especially at the end of service.
It can cope with splitting and joining, but it will not detect a split unless it has the splitting service listed.
You will need to know the Service UID of the first service (which is the letters and numbers in the RTT URL of the service, and also listed as the first thing in the info box).
Please ask if you have any questions.
I look forward to hearing all your feedback. I will be available to help with any problems if you send me a PM but I won't be able to make any improvements for at least a week. I have a few planned, including:
Letting the user enter the starting service in a different way to the service UID
Some internal improvements to the code, like changing some forEach statements and putting some constants in a separate file.
Coping with splitting where the service is not listed by the API.
Diagramming in reverse (finding the previous trains)
During lockdown, I have been working on some software to automatically diagram train service (existing schedules, i.e. finding out which services a particular train will do next).
I thought some on this forum would appreciate some automated way of doing it instead, so I am making this available. It uses the RealTimeTrains API, so many thanks to @Tom for making this available, it is fantastic! You will need a login with the RealTimeTrains API.
It is written in Java, so is run as an executable .jar file, so you will also need Java installed on your computer.
The source code is available at https://github.com/Nunners60007/Diagramming
Feel free to use any component of this, as long as credit is given to me for my parts.
I have attached a tutorial on how to download, set it up and use it. If anything is unclear please ask and I can change it. It is also available at https://docs.google.com/document/d/1vRqScWaFcTPADA4bHGh2Sy4wuYa0W33d2KxOy92AZMY/edit?usp=sharing
The API is currently only available for Simple mode, so it cannot find any ECS movements, so it can sometimes be wrong when one is involved, especially at the end of service.
It can cope with splitting and joining, but it will not detect a split unless it has the splitting service listed.
You will need to know the Service UID of the first service (which is the letters and numbers in the RTT URL of the service, and also listed as the first thing in the info box).
Please ask if you have any questions.
I look forward to hearing all your feedback. I will be available to help with any problems if you send me a PM but I won't be able to make any improvements for at least a week. I have a few planned, including:
Letting the user enter the starting service in a different way to the service UID
Some internal improvements to the code, like changing some forEach statements and putting some constants in a separate file.
Coping with splitting where the service is not listed by the API.
Diagramming in reverse (finding the previous trains)