Commit graph

198 commits

Author SHA1 Message Date
Birte Kristina Friesel
0c5908e722
manual journey entry: hardcode DB (HAFAS) for station selection
TODO: Add a dropdown to select different backends

Closes #150
2024-08-04 08:49:57 +02:00
Birte Kristina Friesel
6659d76101
history: add map link for monthly history 2024-07-28 15:38:31 +02:00
Birte Kristina Friesel
344541786d
iris geolocation: specify hafas=0 2024-07-26 21:19:39 +02:00
Birte Kristina Friesel
6ed2cd6f47
wat 2024-07-26 21:14:58 +02:00
Birte Kristina Friesel
47f76da4f8
Multi-backend support
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-26 18:55:58 +02:00
Birte Kristina Friesel
fa20c21ec2
Add lat/lon to pre-2.7.8 journeys; add eva where missing
This speeds up the map significantly and makes coordinates_by_station obsolete
2024-07-21 19:22:52 +02:00
Birte Kristina Friesel
38f537bf59
Use hafas=DB rather than hafas=1 2024-06-15 10:36:18 +02:00
Birte Kristina Friesel
0b725cbf66
history: it's Fahrten, not Zugfahrten. 2024-06-10 21:53:02 +02:00
Birte Kristina Friesel
c290077471
add journey: return HTTP 400 on input error 2024-06-10 21:51:56 +02:00
Birte Kristina Friesel
970e30202d
HAFAS departures: add earlier / later links 2024-03-31 14:44:37 +02:00
Birte Kristina Friesel
9e073a0fe8
Traveling: work around empty evas list in HAFAS result 2024-03-05 21:35:08 +01:00
Birte Kristina Friesel
7eedd5149f
perltidy 2024-01-30 21:07:57 +01:00
Birte Kristina Friesel
40eb74887b
journey detail title: use departure date 2024-01-30 21:07:06 +01:00
Cassidy Dingenskirchen
5b3cfd3355
add title elements
(cherry picked from commit 5d8f6467dc00f03957784230983ed730ec421291)
Signed-off-by: Birte Kristina Friesel <derf@finalrewind.org>
2024-01-30 21:04:42 +01:00
Birte Kristina Friesel
1690a07d92
Rename filter_after/filter_before to filter_from/filter_to (they're inclusive) 2024-01-02 09:12:24 +01:00
Birte Kristina Friesel
2c229c0317
map: show year in headline if set 2024-01-01 12:58:59 +01:00
Birte Kristina Friesel
a2e1edbe8b
history_map: filter_until is inclusive 2023-12-31 12:24:51 +01:00
Birte Kristina Friesel
4d044fb98a
Fix connection display for Travel::Status::DE::HAFAS 5.x 2023-12-27 11:16:38 +01:00
Birte Kristina Friesel
6364751eb1
HAFAS: Use locationSearch rather than similar_stops_p
locationSearch uses mgate.exe, just like the regular departure board.
similar_stops_p relies on ajax-getstop.exe which may become unavailable sooner
rather than later.
2023-11-01 18:44:00 +01:00
Birte Kristina Friesel
fd43d818f9
increase level of caution 2023-10-01 10:51:58 +02:00
Birte Kristina Friesel
cbc433f76c
suggested connections: avoid fetching IRIS trains via HAFAS 2023-10-01 10:49:36 +02:00
Birte Kristina Friesel
aaeb81a5d2
store related stations; respect them when looking up connections 2023-10-01 07:11:58 +02:00
Birte Kristina Friesel
2638dd36fb
connections: do not show cancelled trains twice 2023-09-26 20:26:12 +02:00
Birte Kristina Friesel
de074342de
add support for HAFAS connection suggestions; drop manual destination list
Still TODO: handle stations that have several EVAs
2023-09-24 18:19:17 +02:00
Birte Kristina Friesel
8810acf742
/s: support filter by trip_id; only allow train filter in IRIS mode 2023-09-17 15:50:11 +02:00
Birte Kristina Friesel
559a1cedd7
manual station entry: fix HAFAS redirect 2023-08-26 09:15:33 +02:00
Birte Kristina Friesel
d313ca7fc1
resolve unknown/ambiguous stop into list of stops 2023-08-24 21:26:00 +02:00
Birte Kristina Friesel
9b66e2779d
geolocation: Fix 'hafas=undefined' links for iris stops 2023-08-24 21:11:45 +02:00
Birte Kristina Friesel
8f747fff91
sort HAFAS/IRIS stations by distance 2023-08-20 16:52:09 +02:00
Birte Kristina Friesel
54547eb3af
manual station entry: HAFAS support 2023-08-18 20:42:37 +02:00
Birte Kristina Friesel
654bde9278
geosearch: always query iris and hafas stops 2023-08-16 18:54:32 +02:00
Birte Kristina Friesel
dfe820952f
station board: add iris / hafas links 2023-08-15 08:37:14 +02:00
Birte Kristina Friesel
8f377d4ee5
traveling: redirect hafas journeys to hafas=1 2023-08-14 12:35:22 +02:00
Birte Kristina Friesel
0604dd80f8
WIP: HAFAS support 2023-08-13 12:51:15 +02:00
Birte Kristina Friesel
38ad42b42c
convert checkout to promises (checkout_p) 2023-07-23 20:18:10 +02:00
Birte Kristina Friesel
f9d1c266ce
action#checkin: re-add auto checkout
was removed from $self->checkin in 1074f248cc
2023-07-16 17:20:36 +02:00
Birte Kristina Friesel
b0bb69d87e
show followee checkins in departure board 2023-07-16 10:30:47 +02:00
Birte Kristina Friesel
40bec7774b
cleanup; perltidy 2023-07-16 10:30:23 +02:00
Birte Kristina Friesel
1cca278baa
add timeline / current checkins 2023-07-15 19:20:37 +02:00
Birte Kristina Friesel
cdce746afd
increase maximum comment length 2023-07-15 16:11:21 +02:00
Birte Kristina Friesel
5b88a4bb3d
station board: fix HTTP status and IRIS error handling 2023-07-09 17:42:12 +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
b5723264a7
HAFAS station board: fix station name display 2023-07-09 07:07:31 +02:00
Derf Null
a608ca6781
update ALL the copyright notices! 2023-07-03 17:59:25 +02:00
Derf Null
085d77a1fa
time to flush the name cache 2023-06-24 18:36:59 +02:00
Derf Null
a249be1d8b
run webhook when updating checkin comment or visibility 2023-06-18 08:38:55 +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
619646b533
warn when trying to check out at invalid unscheduled station
Closes #72
2023-06-08 10:20:13 +02:00
Derf Null
ab04bc19b9
consistently return HTTP 404 on not found errors 2023-06-04 19:37:16 +02:00
Derf Null
c1635e24fb
use a separate bad_request page for CSRF errors 2023-06-04 19:25:24 +02:00