Skip to content

adjust_arrival_departure needs to consider midnight trips #237

@Joaobazzo

Description

@Joaobazzo

If a trip starts at 00:00:00, the first line of àrrival_time would be negative

> tmp_gtfs <- gtfs2gps::adjust_arrival_departure(gtfs_data = tmp_gtfs
                                               ,min_lag = 15)
> tmp_gtfs$stop_times
        trip_id arrival_time departure_time  stop_id stop_sequence
 1: 1012-10-0_1    -00:00:07       00:00:07   301729             1
 2: 1012-10-0_1     00:01:35       00:01:50   301764             2
 3: 1012-10-0_1     00:03:18       00:03:33   301724             3
 4: 1012-10-0_1     00:05:01       00:05:16 30003042             4

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions