Swift Package Index

WMATA

https://github.com/emma-k-alexandra/WMATA.swift.git

WMATA.swift is a Swift interface to the Washington Metropolitan Area Transit Authority API


Compatibility

  • 10.0.0 and master
    5.3
    5.2
    5.1
    5.0
    4.2
  • 10.0.0 and master
    iOS
    macOS(Intel)
    macOS(ARM)
    Linux
    tvOS
    watchOS

WMATA.swift

WMATA.swift is a Swift interface to the Washington Metropolitan Area Transit Authority API.

Contents

Requirements

  • Swift 5.1+

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/emma-k-alexandra/WMATA.swift.git", .upToNextMajor(from: "10.0.0"))
]

Migration Guides

Dependencies

Testing

Tests may fail due to rate limits on the WMATA API. Failed tests must be retried manually.

Contact

Feel free to email questions and comments to emma@emma.sh

Contributing

Todo:

  • Last Train times (API doesn't provide full information here)
  • Documentation of response structs a la wmata
  • Figure out how to serialize tests
  • Automated builds
  • Possible support for CocoaPods/Carthage?

License

WMATA.swift is released under the MIT license. See LICENSE for details.