Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Integrate OTPKit #744

Open
6 tasks
aaronbrethorst opened this issue Sep 3, 2024 · 0 comments
Open
6 tasks

Integrate OTPKit #744

aaronbrethorst opened this issue Sep 3, 2024 · 0 comments

Comments

@aaronbrethorst
Copy link
Member

Let's start getting OTPKit integrated into OneBusAway. Here's what needs to happen:

  • Add OTPKit as a package in Apps/shared/app_shared.yml (I recommend a local package for the moment to make it easier to change OTPKit and have those changes show up in OBA)
  • Add OTPKit as a package dependency in OBAKit/project.yml
  • Create a new tripPlannerService property in OBAKit/Application.swift of type TripPlannerService?
  • Add a new function called refreshServices() to OBAKit/Application.swift, which creates a new instance of TripPlannerService if the new region supports OTP (see the similar function in CoreApplication.swift to get an idea of how this should work)
  • Override open func regionsService(_ service: RegionsService, willUpdateToRegion region: Region) in OBAKit/Application.swift and call refreshServices() from it
  • Add a button to the UI somewhere that presents the UI from OTPKitDemo as a modal inside of OBA and iterate til it works!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant