Commit Graph
37 Commits
Author SHA1 Message Date
fbachus 6dc3e9569a feat(transport_helper): store full departures inside segment
build out fromMap constructor so that departure and vehicle objects are
created from db query

rename vehicle.id to vehicle.vehicleid to conform with the rule that
id=internal & type int | {tablename}id=api_id & type String
2026-07-28 02:16:46 +02:00
fbachus 2c4be8438e fix(database): fix identifiers, string quotation, table initialisation 2026-07-24 23:36:07 +02:00
fbachus 24ddd65bf5 fix(transport_helper): add some entries to match vehicleType codes 2026-07-24 23:14:15 +02:00
fbachus b6b4f27376 feat(departures): add direction info to departures 2026-07-24 18:53:05 +02:00
fbachus 1c0616fa86 feat(departures): make some adaptations to supp diff departure srces
with these adaptations to the api_handler and Departure.fromJson,
the fromJson-factory now works for responses from both /departureBoard
and /tripDetail

for /tripDetail a little json-copying is used, see
ApiHandler._expandDeparturesJson
2026-07-23 21:42:13 +02:00
fbachus 1780a43f30 cleanup(transport_helper): reorder some lines in departures + rm sht
and remove some unnecessary try-catch
2026-07-23 20:40:31 +02:00
fbachus ea0db15877 fix(transport_helper): add missing fields to db table and some extra
add missing fields to db table
add ref attribute to find routeDetails
also add stationNames to simplify display
2026-07-22 03:37:29 +02:00
fbachus 32d8473086 feat(transport_helper): add conflictAlgorithm to db inserts
this way we can try to persist data at liberty without risking failure
right now, redundant entries will be ignored and updates have to happen
with update
nothing calls dbUpdate yet
2026-07-22 02:59:14 +02:00
fbachus e71492141e feat(transport_helper: add "ref" to Segments for journeyDetails later 2026-07-22 02:06:53 +02:00
fbachus fce749ba3a feat(transport_helper): add arrivalTime for more precision
helpful when vehicles are waiting on-station
should be covered by fallbacks without introducing nullability down the
line
2026-07-22 01:35:20 +02:00
fbachus d7aa2a1b46 feat(UI): add screens for choosing stations and vehicles (WIP) 2026-07-21 03:13:35 +02:00
fbachus 25d5e241eb feat(transport_helper): add fromJson constructor for Departure class 2026-07-20 14:45:53 +02:00
fbachus 89a0f9b3c9 fix(db_helper): change possibly misguided variable name 2026-07-13 13:29:37 +02:00
fbachus 1640bbbb87 cleanup(transport_helper): privatise functions where possible 2026-07-13 13:12:20 +02:00
fbachus d3ed0b82cc feat(routes): add function to remove segments till end 2026-07-13 12:52:01 +02:00
fbachus 08e6d36dbe feat(transport_helper): add route building functionality 2026-07-11 22:02:29 +02:00
fbachus 761870bd33 fix(database): add where argument to dbUpdate functions 2026-07-11 21:57:57 +02:00
fbachus 000092d444 cleanup(transport_helper): remove unused database ref 2026-07-10 18:12:36 +02:00
fbachus ee4963ba04 feat(transport_helper): add update function for db 2026-07-10 17:28:20 +02:00
fbachus 61efa70bf1 style(transport_helper): remove redundant type declaration 2026-07-06 18:03:05 +02:00
fbachus 772363cf15 feat(database): add queries for all tables 2026-07-06 18:01:41 +02:00
fbachus 0110fb8ff9 fix(transport_helper): fix typo in database mapping of "Segment" 2026-07-03 02:54:32 +02:00
fbachus 5d7e7ffb61 fixup! style(transport_helper): rename db_insert functions 2026-07-03 00:42:24 +02:00
fbachus a9f99b5409 fix(database): fix type of segment id that has no right to be a TEXT
I could not think of a reason why this table's id should be a text,
so I'm fairly sure it was a mistake. Back to INTEGER
2026-07-03 00:33:21 +02:00
fbachus 704e640495 style(transport_helper): rename db_insert functions
On classes with relational tables, the insert function for the table
that matches the actual class (not relation), is now just called dbInsert
instead of dbInsertClassname.
For inserting to relational Tables, the name stays more descriptive
about the relation covered
2026-07-03 00:29:19 +02:00
fbachus 8532ce4de5 docs(database): done that(ded. db table for lines at station), rm TODO 2026-07-03 00:25:49 +02:00
fbachus 0897a45eb9 feat(database): implement function to delete rows from db tables 2026-07-03 00:24:04 +02:00
fbachus 9bf98f4fb8 fix(transport_helper): fix db type typo 2026-07-02 01:39:40 +02:00
fbachus 5ce11ef945 style(transport_helper): fix capitalisation of Line.lineId 2026-07-02 01:35:55 +02:00
fbachus be379d17da feat(db): add inserts for all tables 2026-06-28 13:45:47 +02:00
fbachus b67d835f38 feat(transporthelper): code cleanup, add toMaps, implement m-n tables
- remove final keywords everywhere for now cause I don't think I need
  them yet for any specific purpose
- add toMap() functions
- add database.insert() functions for classes and relational tables when
  classes use list that reference other classes
2026-06-23 02:37:22 +02:00
fbachus 7f6c7beb59 feat(classes): implement initiation, start work on dbHelper 2026-06-16 00:48:53 +02:00
fbachus 7cfc415f9f feat(database): add functions for DB and DB-table creation 2026-06-06 01:22:36 +02:00
fbachus 5fd3e8faad chore(formatting): autoformats and adaptations 2026-06-06 01:22:36 +02:00
fbachus c581800298 fix(json): fix typo in json import 2026-06-06 01:22:36 +02:00
fbachus aa47b9d85f feat(json import): add fromJson to missing classes and connect them 2026-05-31 18:25:29 +02:00
fbachus 1730232450 feat(data_mapping): add constructors for most publictransport classes 2026-05-15 21:07:04 +02:00