Skip to content

with routes.agency_id = null, t_departure is always null #45

@langbein-daniel

Description

@langbein-daniel

Sorry for confronting you with yet another issue/pull request message this weekend ^^


I noticed that in my arrivals_departures view, there are no t_departure values. The following statement gives 0 results:

SELECT date, departure_time, t_departure
FROM arrivals_departures
WHERE t_departure IS NOT NULL
LIMIT 100

As written in the README, this field is calculated based on the date and departure_time fields. In the code I saw, that the agency_timezone is used as well (if no stations or stop timezone is given).

My agency.txt has just one agency where agency_timezone is specified as "Europe/Berlin".

And I do have date and departure_time values in the arrivals_departures view:

SELECT date, departure_time, t_departure, route_short_name, stop_name
FROM arrivals_departures
WHERE route_short_name = 'S1'
ORDER BY date, departure_time
LIMIT 100
   1   │         date         | departure_time | t_departure | route_short_name |         stop_name          
   2   │ ---------------------+----------------+-------------+------------------+----------------------------
   3   │  2022-12-11 00:00:00 | 05:08:00       |             | S1               | Bamberg
   4   │  2022-12-11 00:00:00 | 05:13:00       |             | S1               | Strullendorf
   5   │  2022-12-11 00:00:00 | 05:16:00       |             | S1               | Hirschaid
   6   │  2022-12-11 00:00:00 | 05:19:00       |             | S1               | Buttenheim
   7   │  2022-12-11 00:00:00 | 05:22:00       |             | S1               | Eggolsheim

Any ideas what could cause this? I am happy to provide more information. I used the latest Docker image if your program together with the postgis/postgis image.

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions