These packages are available as a package collection, usable in Xcode or SwiftPM.
Information services for trains in the UK, using the National Rail open API
1 package.