Commit graph

134 commits

Author SHA1 Message Date
Birte Kristina Friesel
de55368db7
Journey->add: store lat/lon for route at entry time, if available 2024-07-21 17:23:28 +02:00
Birte Kristina Friesel
07ab3f4e9b
store lat/lon along with route
This increases resilience against EVA ID reuse
2024-07-08 21:05:21 +02:00
Birte Kristina Friesel
d7fd521899
InTransit: allow setting data in add call 2024-06-15 22:03:36 +02:00
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
c105bc4e40
recent journeys: use hafas=DB as well 2024-06-15 10:43:34 +02:00
Birte Kristina Friesel
38f537bf59
Use hafas=DB rather than hafas=1 2024-06-15 10:36:18 +02:00
Birte Kristina Friesel
f71348a8a8
Store journey backend; do not rely on '|' in ID to distinguish IRIS/HAFAS
This is in preparation for supporting multiple HAFAS backends, and possibly
EFA and RIS::Journeys.
2024-06-08 22:18:31 +02:00
Birte Kristina Friesel
c969424c2d
... derp 2024-06-06 19:40:59 +02:00
Birte Kristina Friesel
14023ad185
traewelling pull sync requires user_name to be set 2024-06-06 18:01:34 +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
4764fd9a6b
route_after: handle passing the same stop more than once 2024-05-22 19:08:35 +02:00
Birte Kristina Friesel
dc4f61c2aa
InTransit: postprocess: simplify DateTime handling a bit 2024-05-09 08:33:55 +02:00
Birte Kristina Friesel
a0bd839594
refactor polyline insertion into InTransit Model 2024-04-21 19:21:16 +02:00
Birte Kristina Friesel
2ff5f92bcc
Store HAFAS checkins with type/train/line number at checkin station 2024-04-16 18:08:21 +02:00
Birte Kristina Friesel
c9e5bfae62
store tz_offset in route data if present 2024-04-03 13:58:48 +02:00
Birte Kristina Friesel
4393751bcb
Journeys: adjust sanity_check for local transit stuff 2024-02-13 21:51:08 +01:00
Birte Kristina Friesel
39ebc84e5f
add dumpstops command 2024-02-09 19:09:16 +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
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
e346f969b0
intransit: support HAFAS trains that do not have a type 2023-09-24 18:20:15 +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
8daf885ace
indicate whether current journey has realtime data 2023-09-09 10:06:31 +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
f4d71b4d9f
obtain autocompletion from database 2023-08-26 09:17:28 +02:00
Birte Kristina Friesel
ecc419e646
select latest journey based on timestamp, not ID
This avoids manually added past journeys messing with the latest travel target
2023-08-22 09:21:02 +02:00
Birte Kristina Friesel
5d330a7738
recent targets: distinguish hafas/iris 2023-08-16 09:31:01 +02:00
Birte Kristina Friesel
0604dd80f8
WIP: HAFAS support 2023-08-13 12:51:15 +02:00
Birte Kristina Friesel
8ec002f041
Store traewelling refresh token in database 2023-08-09 19:28:36 +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
86ddfe5c97
Users->delete: delete relations as well 2023-07-19 09:17:19 +02:00
Birte Kristina Friesel
fef9ebe0b2
followee list: show if accounts are following back 2023-07-18 15:47:45 +02:00
Birte Kristina Friesel
19cd9f7a8d
account: add a list of sent follow requests 2023-07-16 23:01:23 +02:00
Birte Kristina Friesel
b0bb69d87e
show followee checkins in departure board 2023-07-16 10:30:47 +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
3c59efe2d4
timeline: minimum visibility is followers-only, not unlisted 2023-07-15 16:12:09 +02:00
Birte Kristina Friesel
b446b68e67
Move InTransit post-processing to InTransit module 2023-07-15 13:28:54 +02:00
Birte Kristina Friesel
d43c44e81c
add view for followees in transit 2023-07-15 08:36:26 +02:00
Birte Kristina Friesel
ca3cd1580f
Journeys->get_latest: Fix uninitialized value warning 2023-07-14 18:48:46 +02:00
Birte Kristina Friesel
5e74e35dfe
get_pushable_accounts: obtain all values from in_transit_str 2023-07-13 21:08:12 +02:00
networkException
0c1993f28e
Checkin: Use correct visibility when pushing to Träwelling 2023-07-13 20:17:51 +02:00
Derf Null
c9bae6fcee
journeys: simplify visibily check 2023-07-03 18:12:34 +02:00
Derf Null
a608ca6781
update ALL the copyright notices! 2023-07-03 17:59:25 +02:00
Derf Null
4dd2cc9d9e
show hours and minutes until arrival, not just minutes 2023-07-02 10:48:34 +02:00
Derf Null
00ee3de6c1
Journey->add_from_in_transit: return ID of added journey 2023-06-28 22:21:51 +02:00
Derf Null
bb43a2e8e3
journeys: return effective visibility 2023-06-27 21:50:28 +02:00
Derf Null
8cb0de1b70
compute effective visibility in database view 2023-06-26 20:53:08 +02:00
Derf Null
0702a0edca
Move hash_password to Model/Users 2023-06-26 19:50:49 +02:00
Derf Null
e14966c488
Users->add: correctly specify default visibility 2023-06-25 11:09:51 +02:00
Derf Null
b44b770ec3
fine-graned visibility selection of history / past checkins
most notably, adds a 'history for followers only' mode
2023-06-24 21:25:14 +02:00