Swiftpack.co - ICE-Buddy/Train-API-Swift-Package as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by ICE-Buddy.
ICE-Buddy/Train-API-Swift-Package 1.0.4
This is a Swift Package bundling different Train APIs into one simple Swift interface.
⭐️ 6
🕓 3 weeks ago
iOS macOS
.package(url: "https://github.com/ICE-Buddy/Train-API-Swift-Package.git", from: "1.0.4")

Train-API

Offering a simple Swift API for real-time tain/travel-information.

ICE API

This Swift Package has been developed to power ICE Buddy.

On-Board Server

This Swift Package connects to the on-board server of ICE trains, so connecting to the WiFi@DB or WiFionICE is mandatory.

Then, REST-Requests are sent to the following endpoints:

Available Data Points

  • Current speed (km/h)
  • Train name and journey title (e.g., ICE 643: Düsseldorf Hbf -> Berlin Ostbahnhof)
  • Train model (e.g., ICE 4)
  • Train model image
  • Journey (all train stations), incluing:
    • Track
    • Planned arrival time
    • Actual arrival time (delay)
  • Current internet quality (stable / unstable)

TGV, ÖBB, SBB CFF FFS?

We encourage all thrain enthusiasts from all over the world to contribute to this open-source project!

GitHub

link
Stars: 6
Last commit: 3 weeks ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics