- An API key and user ID from PTV. You can get one from here.
SwiftPTV is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod 'SwiftPTV'
SwiftPTV is also available through Carthage. To install it, add the following line to your Cartfile:
github "evilgoldfish/SwiftPTV"
Run carthage update
to build the framework and drag the newly built SwiftPTV.framework
into your Xcode project.
You can run the included example app by cloning the repository, opening SwiftPTV.xcodeproj
and choosing the SwiftPTVExampleiOS
scheme on the top left of the Xcode window.
- evilgoldfish
SwiftPTV is available under the MIT license. See the LICENSE file for more info.
The PTV Timetable API Data is licensed under a Creative Commons Attribution 4.0 International Licence. Data from Public Transport Victoria is not supplied with this framework, but using the PTV Timetable API Data requires the following attribution:
Source: Licensed from Public Transport Victoria under a Creative Commons Attribution 4.0 International Licence.
See the PTV website for more information.