.exclude_gtfs_stops_by_id(+)
GtfsZoningReaderSettings method
Description
Exclude specific GTFS stops from parsing.
Signature
.exclude_gtfs_stops_by_id(gtfs_stop_ids: List[str])
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
gtfs_stop_ids |
str |
N/A | N/A | GTFS stop ids to exclude |
Return type
N/A
Example 1
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
# <some_intermodal_reader> = construct OSM or PLANit intermodal reader for example
# GTFS reader
gtfs_reader: GtfsIntermodalReaderWrapper = \
intermodal_converter.create_reader(IntermodalReaderType.GTFS, "Australia", <some_intermodal_reader>)
## exclude certain GTFS stops by their GTFS stop id ##
gtfs_reader.settings.zoning_settings.exclude_gtfs_stops_by_id(['123456', '8876549'])
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py