validators

validators

A set of functions that validate the GTFS data.

Functions

Name Description
validate_travel_between_consecutive_stops Validate the travel between consecutive stops in the GTFS data.
validate_travel_over_multiple_stops Validate travel over multiple stops in the GTFS data.

validate_travel_between_consecutive_stops

validators.validate_travel_between_consecutive_stops(gtfs)

Validate the travel between consecutive stops in the GTFS data.

Ensures that a trip is valid by examining the duration and distance of a trip. If a vehicle is travelling at an unusual speed, the trip can be deemed invalid.

validate_travel_over_multiple_stops

validators.validate_travel_over_multiple_stops(gtfs)

Validate travel over multiple stops in the GTFS data.