Learn R Programming

gtfstools (version 2.0.1)

has_overnight_trips: Check whether a feed has trips with times after midnight to fix

Description

Detects the trips whose times after midnight are written as early morning times (e.g. "00:30:00" instead of "24:30:00"), as fix_overnight_times() does, without fixing them: trips with a time more than 12 hours earlier than the previous time of the trip, and frequencies entries whose end_time is earlier than their start_time. Trips already written with times past "24:00:00" don't count. Tables whose fields can't be checked (e.g. a stop_times without an integer stop_sequence) are skipped.

Usage

has_overnight_trips(gtfs)

Value

TRUE if fix_overnight_times() would change any time, FALSE

otherwise.

Arguments

gtfs

A GTFS object.