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

Add All TrueTime Routes at Compile Time #309

Closed
epicstar opened this issue Nov 22, 2016 · 2 comments
Closed

Add All TrueTime Routes at Compile Time #309

epicstar opened this issue Nov 22, 2016 · 2 comments
Assignees

Comments

@epicstar
Copy link
Member

http://truetime.portauthority.org/bustime/api/v2/getroutes?key=<api_key>&format=json

@epicstar
Copy link
Member Author

epicstar commented Feb 5, 2017

I'm planning to create a table for routes on a DB. This way...

  • we can keep track of any changes to the route list the next time we poll getroutes in the app. (criteria to poll this... unsure... I'm thinking quarterly but note that sometimes this data changes more than quarterly).
  • if we have a GUI to change the colors of each route, we will prefer the user's color of choice and not the color from Port Authority.

Pre-requisites of this is that:

  • at build time, the app will get all patterns from that specific json
  • store it in a DB
  • create table in DB with all the information from that JSON
  • have code that is shared between my pat-static project and the app project...
    • at app first start, it will install a db with this table if that table isn't present at all
    • any time after, it will always look to get data from the internet
    • this db must not be wiped at all at app-update time. This needs to be specified because the only way to install a DB into a device is via the main activity's onCreate

This also means that the route list selection generation will be completely refactored (again) such that it will poll from a DB instead of strings.xml. Notice... for this edge case, this routes table from pre-compilation

I'm going to move this

epicstar added a commit that referenced this issue Mar 11, 2017
…routes as single, now caching routes and its patterns to assets file at runtime
epicstar added a commit that referenced this issue Mar 27, 2017
…der interface, add unit tests around new PatternDataManager
@epicstar
Copy link
Member Author

Released with 8.0.0b3

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants