Tracking of train(have tracking devices) using cuba platform

I want to develop a web app to track location of a train departed from a certain station or yard.
The trains have tracking devices?
Am i able to achieve this with cuba?
If not, what is the suggested solution and where can i get some more detail about ‘how to’?

Thank you