Commit graph

327 commits

Author SHA1 Message Date
Birte Kristina Friesel
9b256f0f02
remove service / sb_template selection; hardcode DBF with variable hafas flag 2024-06-15 17:50:56 +02:00
Birte Kristina Friesel
40cbfd62df
allow force checkouts even in case of route mismatches 2024-06-06 17:57:15 +02:00
Birte Kristina Friesel
7b8584473b
Profile: Add JSON renderer 2024-05-31 10:59:41 +02:00
Birte Kristina Friesel
9442572084
DBDB: use realtime cache for carriage composition requests 2024-05-30 11:53:33 +02:00
Birte Kristina Friesel
2576a463db
perform stationinfo requests for hafas checkins 2024-05-30 11:25:52 +02:00
Birte Kristina Friesel
85c7861bc1
request wagon orders for HAFAS checkins 2024-05-29 21:49:31 +02:00
Birte Kristina Friesel
1ad8fa3a51
Move wagonorder request to a separate helper
This is in preparation for HAFAS wagonorder support
2024-05-29 20:17:01 +02:00
Birte Kristina Friesel
5a2285bd59
check train/trip id when updating associated data
this avoid race conditions when a user changes their checkin between the time
of request (old trip id) and the time of data update (new trip id). These
could lead to funny effects such as buses suddenly having S-Bahn carriage
formations.
2024-05-24 21:39:09 +02:00
Birte Kristina Friesel
f7a9213961
add_route_timestamps: IRIS route may be shorter than HAFAS route 2024-05-22 19:20:39 +02:00
Birte Kristina Friesel
cd6df2aa9b
Use HAFAS routes as single source of truth. Overwrite initial IRIS route. 2024-05-22 19:04:57 +02:00
Birte Kristina Friesel
0a85971565
/status: respond to .json as well as "Accept: application/json" 2024-04-26 17:47:32 +02:00
Birte Kristina Friesel
a0bd839594
refactor polyline insertion into InTransit Model 2024-04-21 19:21:16 +02:00
Birte Kristina Friesel
875ec1c3e5
Request polylines for HAFAS journeys as well; only store sensible ones
Decreases severity of #99
Fixes #108
2024-04-07 11:18:04 +02:00
Birte Kristina Friesel
dafeb838dc
Use journeyMatch rather than legacy trainsearch.exe API to find tripIDs 2024-02-24 20:11:11 +01:00
Birte Kristina Friesel
d47195a0cf
Switch to Travel::Status::DE::HAFAS 5.x 2023-12-27 10:59:35 +01:00
Birte Kristina Friesel
04c8d7672a
journey: show distances below 10km with 100m resolution (and <1km with 1m) 2023-09-16 22:23:44 +02:00
Birte Kristina Friesel
434eb5a18d
map: use high beeline opacity if no polylines are available 2023-09-12 18:26:15 +02:00
Birte Kristina Friesel
2e14c2e3e4
Fix intermediate stop display for journeys without real-time data, e.g. H-Bahn 2023-09-07 21:19:43 +02:00
Birte Kristina Friesel
26ebd3d644
API: Expose HAFAS JourneyID, if available (#85) 2023-08-30 21:54:05 +02:00
Birte Kristina Friesel
f4d71b4d9f
obtain autocompletion from database 2023-08-26 09:17:28 +02:00
Birte Kristina Friesel
b85e8a1e04
API: Support HAFAS checkin (via journeyID) 2023-08-19 12:43:43 +02:00
Birte Kristina Friesel
293f0c7577
synchronize non-train checkins from traewelling to travelynx 2023-08-13 20:18:40 +02:00
Birte Kristina Friesel
0604dd80f8
WIP: HAFAS support 2023-08-13 12:51:15 +02:00
Birte Kristina Friesel
52c0da3f46
Traewelling: replace legacy password login with OAuth2
This is a breaking change insofar as that traewelling support is no longer
provided automatically, but must be enabled by providing a traewelling.de
application ID and secret in travelynx.conf. However, as traewelling.de
password login is deprecated and wil soon be disabled, travelynx would break
either way. So we might or might not see travelynx 2.0.0 in the next days.

Automatic token refresh is still todo, but that was the case for password
login as well.

Closes #64
2023-08-07 21:17:10 +02:00
Birte Kristina Friesel
38ad42b42c
convert checkout to promises (checkout_p) 2023-07-23 20:18:10 +02:00
Birte Kristina Friesel
13277ad770
checkout: remove with_related special case
travelynx now always calls checkout with the database-provided arr_eva,
so the edge case in which it provided a station that is not actually on the
route of a train can no longer appear.
2023-07-23 12:21:37 +02:00
Birte Kristina Friesel
9df937c890
remove debug output 2023-07-15 23:23:11 +02:00
Birte Kristina Friesel
1cca278baa
add timeline / current checkins 2023-07-15 19:20:37 +02:00
Birte Kristina Friesel
bee67f096a
get_user_status: fix stop_before_dest calculation 2023-07-15 19:16:01 +02:00
Birte Kristina Friesel
40cd1d06fe
postprocess timeline; move user-related parts to get_user_status 2023-07-15 19:07:21 +02:00
Birte Kristina Friesel
cdce746afd
increase maximum comment length 2023-07-15 16:11:21 +02:00
Birte Kristina Friesel
b446b68e67
Move InTransit post-processing to InTransit module 2023-07-15 13:28:54 +02:00
Birte Kristina Friesel
2123a67ba0
IRIS->get_departures_p: return string in first rejection argument
This is consistent with other promises within travelynx
2023-07-09 17:41:51 +02:00
Birte Kristina Friesel
1074f248cc
use promises for checkin and traewelling_to_travelynx 2023-07-09 14:46:28 +02:00
Birte Kristina Friesel
fb83b0ad9f
checkin: reduce nesting 2023-07-09 07:16:22 +02:00
Derf Null
a608ca6781
update ALL the copyright notices! 2023-07-03 17:59:25 +02:00
Derf Null
a5bdf28f4c
perltidy 2023-06-29 21:54:51 +02:00
Derf Null
8cb0de1b70
compute effective visibility in database view 2023-06-26 20:53:08 +02:00
Derf Null
085d77a1fa
time to flush the name cache 2023-06-24 18:36:59 +02:00
Molly Miller
beb59221e7 Add app version to default stashed values.
This means that the version no longer needs to be passed to every version
manually, and is automatically populated in templates where the parameter is
not explicitly provided.
2023-06-12 20:48:01 +02:00
Derf Null
0516344ac0
login form: add hint about pages being only visibile after login 2023-06-09 07:55:59 +02:00
Derf Null
88ede7e308
update ice names 2023-06-08 12:44:04 +02:00
Derf Null
e275fc6dbe
Fix edge case that allowed in-transit journeys with invalid destinations 2023-06-07 23:04:00 +02:00
Derf Null
00eb6af1bd
expose follows / social interaction in frontend 2023-06-04 18:21:36 +02:00
Derf Null
0172f0ce8a
add profile editor 2023-06-04 14:28:04 +02:00
Derf Null
0f9519c40b
get_user_status_json_v1: expose comment 2023-05-29 14:50:04 +02:00
Derf Null
7580497cea
get_user_status_json_v1: expose visibility 2023-05-24 21:41:51 +02:00
Derf Null
9b83e1a8f1
/status/:user: respond to JSON 2023-05-21 19:57:56 +02:00
Derf Null
dbc5c38968
get_user_status_json_v1: add public flag to hide actionTime 2023-05-21 19:44:43 +02:00
Derf Null
72f6c2ea2d
fix pride ICE not being indicated in public status card 2023-05-18 08:25:19 +02:00