GTFSLoader
¶
Bases: Loader
GTFSLoader.
This loader is capable of reading GTFS feed and calculates time aggregations in 1H slots.
Source code in srai/loaders/gtfs_loader.py
¶
Load GTFS feed and calculate time aggregations for stops.
PARAMETER | DESCRIPTION |
---|---|
gtfs_file |
Path to the GTFS feed.
TYPE:
|
fail_on_validation_errors |
Fail if GTFS feed is invalid. Ignored when skip_validation is True.
TYPE:
|
skip_validation |
Skip GTFS feed validation.
TYPE:
|
RETURNS | DESCRIPTION |
---|---|
gpd.GeoDataFrame
|
gpd.GeoDataFrame: GeoDataFrame with trip counts and list of directions for stops. |