OTPKit

OTPKit screenshot
Back

OTPKit is a Swift-based library enabling trip planning functionality in iOS applications. It powers the OneBusAway iOS app and can be integrated into any iOS project as a reusable component, providing networking, models, and APIs for building a complete trip planning experience.

Features

  • SwiftUI Support - OTPView component for easy SwiftUI integration
  • UIKit Compatibility - Works with UIHostingController for traditional iOS apps
  • OpenTripPlanner Integration - Compatible with OTP 1.5.x and higher versions
  • Customizable Theming - Primary and secondary color configuration
  • Regional Configuration - User location fallback options for flexible deployment
  • Swift Package Manager - Easy distribution and dependency management
  • Quality Enforcement - SwiftLint integration and pre-commit hooks

Get Started

View the source code and documentation on GitHub: github.com/OneBusAway/otpkit

Apache 2.0 View Source