ASTransitMonitor is a powerful library that allows developers to easily integrate transit monitoring functionality into their iOS applications. With ASTransitMonitor, you can track real-time transit information, including arrival and departure times, for multiple transit agencies.

Key Features

  • Real-time transit information
  • Support for multiple transit agencies
  • Track arrival and departure times
  • Easy to integrate into iOS apps


To install ASTransitMonitor in your iOS project, follow these simple steps:

  1. Open your Xcode project
  2. Go to “File” > “Swift Packages” > “Add Package Dependency”
  3. Enter the URL of the ASTransitMonitor repository:
  4. Select the version you want to use
  5. Click “Next” and follow the prompts to complete the installation


Using ASTransitMonitor in your iOS app is straightforward, thanks to its intuitive API. Follow the steps below to get started:

  1. Import ASTransitMonitor into your Swift file: import ASTransitMonitor
  2. Create an instance of the TransitMonitor class
  3. Set the transit agency you want to monitor: transitMonitor.setAgency("AgencyName")
  4. Start monitoring the transit information: transitMonitor.startMonitoring()
  5. Receive real-time updates and handle them accordingly

Example Code

Here’s an example of how you can use ASTransitMonitor in your iOS app:

import ASTransitMonitor

let transitMonitor = TransitMonitor()

// Set the transit agency you want to monitor

// Start monitoring the transit information

// Receive real-time updates
transitMonitor.onUpdate { (arrivalTimes, departureTimes) in
// Handle the arrival and departure times

Additional Resources

For more information on using ASTransitMonitor and its API, refer to the official GitHub repository. You can also find a detailed documentation and examples in the repository’s README file.


ASTransitMonitor offers a convenient way to integrate transit monitoring functionality into your iOS applications. With its easy-to-use API, you can easily track real-time transit information for multiple transit agencies. Visit the project’s GitHub repository for more information and start enhancing your iOS app with transit monitoring capabilities!