Page MenuHomeGitPull.it

Make new fragment for lines, use new MaTO API
ClosedPublic

Authored by fabio.mazza on Apr 19 2022, 19:20.

Details

Summary

Use new Mato API for nearby stops

Change a bit the nearby stops logic

Work on getting feeds

Download agencies on update

Download routes from MaTO

Stop trying to download old lines

Make table for patterns, start with downloading polylines and stops

Use low priority channel for the database notifications

Add code for patterns

Save patterns with stops in the DB

Add Migration and tests

Set limits for updates

Add database schemas

Test Plan

check it builds, download on the phone and look at the logcat to see that there aren't any errors

Diff Detail

Repository
R4 Libre BusTO
Lint
Lint Not Applicable
Unit
Tests Not Applicable

Event Timeline

Restricted Application added a reviewer: valerio.bozzolan. · View Herald Transcript
Restricted Application added subscribers: Libre BusTO , valerio.bozzolan. · View Herald Transcript
  • Disable old test
  • Make new fragment
  • Experiment with LiveData and coroutines
  • Use LiveData
  • Show the lines nicely
  • Make stop with default gtfsID in constructor
  • Fix error and show finally the stops for the lines
  • Better parsing of Capitalized string into noncapitalized one
  • Use different layout for line shown
  • Reuse adapter, fix strings
  • Go back to the same fragment, finish up with strings
fabio.mazza retitled this revision from Database overhaul, using Room and MaTO for the data source to Make new fragment for lines, use new MaTO API.Apr 29 2022, 20:22

That's awesome!

And it works.

asd

sgtm

Land.

This revision is now accepted and ready to land.Apr 30 2022, 01:29