summaryrefslogtreecommitdiff
path: root/lib
AgeCommit message (Collapse)AuthorLines
2024-08-14IRIS checkout: do not overwrite HAFAS route with IRIS routeBirte Kristina Friesel-9/+0
The IRIS route may differ from the HAFAS route in case of diversions, causing travelynx to lose real-time data, coordinates, and polyline when the follow-up add_route_timestamps call is not made.
2024-08-14get_travel_distance: always return beeline distance2.8.18Birte Kristina Friesel-9/+6
2024-08-14add_route_timestamps: do not re-request trip id if it is already known2.8.17Birte Kristina Friesel-8/+19
2024-08-13DBDB: sort wagenreihung dict keys so that caching actually works2.8.16Birte Kristina Friesel-2/+2
2024-08-13backend selection: remove type from buttons (invisible on narrow screens)Birte Kristina Friesel-1/+1
2024-08-12DBDB: handle undef train_typesBirte Kristina Friesel-0/+1
2024-08-12backend form: always show IRIS firstBirte Kristina Friesel-1/+6
2024-08-12backend selection: add homepage linksBirte Kristina Friesel-3/+6
2024-08-12database: avoid needlessly incrementing backends.idBirte Kristina Friesel-8/+18
2024-08-11DBDB: It's $tx->res->codeBirte Kristina Friesel-2/+2
2024-08-10work: only request carriage formation for DB backendsBirte Kristina Friesel-2/+4
2024-08-10backend selection: handle backends that are no longer supportedBirte Kristina Friesel-3/+9
2024-08-09get_connection_targets: always return a list2.8.13Birte Kristina Friesel-2/+5
Closes #152 Closes #153
2024-08-08Switch to new carriage formation APIBirte Kristina Friesel-76/+144
2024-08-07dumpstops: provide backend name and type rather than just opaque IDs2.8.10Birte Kristina Friesel-3/+26
2024-08-04journey->add: pass backend_id on to station search for route2.8.9Birte Kristina Friesel-2/+3
Ref: #150
2024-08-04manual journey entry: hardcode DB (HAFAS) for station selection2.8.8Birte Kristina Friesel-4/+7
TODO: Add a dropdown to select different backends Closes #150
2024-07-28history: add map link for monthly history2.8.6Birte Kristina Friesel-7/+9
2024-07-26iris geolocation: specify hafas=02.8.4Birte Kristina Friesel-0/+1
2024-07-26watBirte Kristina Friesel-2/+9
2024-07-26fix v55 migration: we also need to sync hafas->iris in some cases2.8.1Birte Kristina Friesel-7/+66
2024-07-26influxdb: per-backend statsBirte Kristina Friesel-53/+48
2024-07-26Multi-backend supportBirte Kristina Friesel-321/+803
Squashed commit of the following: commit 92518024ba295456358618c0e8180bd8e996fdf1 Author: Birte Kristina Friesel <birte.friesel@uos.de> Date: Fri Jul 26 18:39:46 2024 +0200 add_or_update station: remove superfluos 'new backend id := old backend id' commit df21c20c6e4c86454f8a9ac69121404415217f2a Author: Birte Kristina Friesel <birte.friesel@uos.de> Date: Fri Jul 26 18:35:51 2024 +0200 revert connection targets min_count to 3 commit be335cef07d0b42874f5fc1de4a1d13396e8e807 Author: Birte Kristina Friesel <birte.friesel@uos.de> Date: Fri Jul 26 18:20:05 2024 +0200 mention backend selection in API documentation commit 9f41828fb4f18fd707e0087def3032e8d4c8d7d8 Author: Birte Kristina Friesel <derf@finalrewind.org> Date: Thu Jul 25 20:19:23 2024 +0200 use_history: not all backends provide route data in departure monitor commit 09714b4d89684b8331d0e96f564a4c7432318f70 Author: Birte Kristina Friesel <derf@finalrewind.org> Date: Thu Jul 25 20:11:44 2024 +0200 disambiguation: pass correct hafas parameter commit 8cdf1120fc32155dc6525be64601b7c10a9c7f52 Author: Birte Kristina Friesel <derf@finalrewind.org> Date: Thu Jul 25 20:11:28 2024 +0200 _checked_in: hide Zuglauf link for non-db checkins commit 7455653f541198e0e0a6d11aed421487ffdb6285 Author: Birte Kristina Friesel <derf@finalrewind.org> Date: Thu Jul 25 20:01:47 2024 +0200 debug output commit b9cda07f85601a58ea32dbdacdd5399f302db52b Author: Birte Kristina Friesel <derf@finalrewind.org> Date: Thu Jul 25 19:09:07 2024 +0200 fix remaining get_connection_targets / get_connecting_trains_p invocations commit 2759d7258c37c7498905cfe19f6b4c4f6d16bd21 Author: Birte Kristina Friesel <derf@finalrewind.org> Date: Wed Jul 24 20:50:12 2024 +0200 support non-DB HAFAS backends (WiP)
2024-07-21Stations: Remove get_latlon_by_name (no longer needed)2.7.9Birte Kristina Friesel-14/+0
2024-07-21Add lat/lon to pre-2.7.8 journeys; add eva where missingBirte Kristina Friesel-51/+191
This speeds up the map significantly and makes coordinates_by_station obsolete
2024-07-21Journey->add: store lat/lon for route at entry time, if availableBirte Kristina Friesel-4/+33
2024-07-18HAFAS: Add get_service wrapperBirte Kristina Friesel-0/+6
2024-07-08store lat/lon along with route2.7.8Birte Kristina Friesel-3/+11
This increases resilience against EVA ID reuse
2024-06-23IRIS: Use EVA ID rather than DS100 code for backend requests2.7.4Birte Kristina Friesel-2/+2
2024-06-23work: give bodged background tasks some time to completeBirte Kristina Friesel-0/+9
2024-06-23always use HAFAS for traewelling → travelynxBirte Kristina Friesel-199/+50
2024-06-21oopsie2.7.2Birte Kristina Friesel-1/+1
Closes #144
2024-06-21add_route_timestamps: use $train->id rather than in_transit id2.7.1Birte Kristina Friesel-1/+1
this avoids a race condition when the worker requests all current checkins and takes a while before getting to update the data
2024-06-15InTransit: allow setting data in add callBirte Kristina Friesel-7/+10
2024-06-15remove service / sb_template selection; hardcode DBF with variable hafas flagBirte Kristina Friesel-61/+4
2024-06-15traewelling: increase latency between traewelling.de requestsBirte Kristina Friesel-1/+1
2024-06-15recent journeys: use hafas=DB as wellBirte Kristina Friesel-1/+1
2024-06-15Use hafas=DB rather than hafas=12.6.22Birte Kristina Friesel-10/+13
2024-06-15work,traewelling: consistent debug output if maintenance file is presentBirte Kristina Friesel-2/+14
2024-06-14work: _really_ do not execute any database actions in maintenance modeBirte Kristina Friesel-0/+6
2024-06-12use 'maintenance' file to stop background jobs when running DB upgradesBirte Kristina Friesel-0/+17
2024-06-10history: it's Fahrten, not Zugfahrten.Birte Kristina Friesel-3/+3
2024-06-10add journey: return HTTP 400 on input errorBirte Kristina Friesel-0/+3
2024-06-09Increate train_id length to account for DB HAFAS update2.6.19Birte Kristina Friesel-1/+117
2024-06-08Store journey backend; do not rely on '|' in ID to distinguish IRIS/HAFASBirte Kristina Friesel-1/+121
This is in preparation for supporting multiple HAFAS backends, and possibly EFA and RIS::Journeys.
2024-06-06... derp2.6.18Birte Kristina Friesel-5/+2
2024-06-06traewelling pull sync requires user_name to be set2.6.17Birte Kristina Friesel-1/+4
2024-06-06allow force checkouts even in case of route mismatches2.6.16Birte Kristina Friesel-1/+1
2024-06-06traewelling: trace missing username bug2.6.15Birte Kristina Friesel-0/+7
2024-06-02work: check arr on arr, not on dep2.6.14Birte Kristina Friesel-1/+1