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 Static Route Lines on App's Build Time #301

Closed
epicstar opened this issue Nov 20, 2016 · 6 comments
Closed

Add Static Route Lines on App's Build Time #301

epicstar opened this issue Nov 20, 2016 · 6 comments
Assignees

Comments

@epicstar
Copy link
Member

Add the static route lines before the app's runtime (during "compile-time").

We can get the data here: https://data.wprdc.org/dataset/port which I learned from http://transportationcamp.org/events/pgh-2016/

@epicstar
Copy link
Member Author

epicstar commented Nov 20, 2016

This is going to be a feature that will work in conjunction with #276 and kills #138

@epicstar
Copy link
Member Author

This ticket requires #297

epicstar added a commit that referenced this issue Dec 28, 2016
epicstar added a commit that referenced this issue Dec 28, 2016
epicstar added a commit that referenced this issue Dec 28, 2016
epicstar added a commit that referenced this issue Feb 5, 2017
@epicstar
Copy link
Member Author

epicstar commented Feb 5, 2017

Route line design is going to change to this:

  • static route information is stored in JSON
  • this data will be replaced on the device at every app update
  • if wifi present, for any routes selected onCreate and/or before closing the app
    • download selected routes from TrueTime API
    • reset the state of routes (if already shown)
  • for every click, favor TrueTime routes if present... If not:
    • if data present,
    • else, use static route information instead

@epicstar epicstar self-assigned this Feb 5, 2017
epicstar added a commit that referenced this issue Feb 26, 2017
Exploring to see if I can use this shapefilereader lib into my app and build at the same time
@epicstar
Copy link
Member Author

I was experimenting with two other shapefile libraries and both lack metdata for route information needed to link them to a certain route: http://stackoverflow.com/questions/19548044/android-lib-to-read-or-parse-shapefile

This is not ideal at all, since I'd like to share code between build time and app runtime for storing static information.

I think I'm going to just use another TrueTime API key, call getpatterns on every route, store necessary information into the app. This way, I can get this thing done faster as I don't want to make my own shapefile reader library.

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

epicstar commented Apr 1, 2017

The final decision on this was just to download routes from the Port Authority data at build time. see #316 for details

@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

1 participant