.set_remove_unused_transfer_zones(+)
GtfsZoningReaderSettings method
Description
Indicate to remove unused GTFS stops after parsing. Unused means no services are stopping at that particular stop.
Signature
.set_remove_unused_transfer_zones(flag: bool)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
flag |
bool |
N/A | True |
When True activate, otherwise deactivate |
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>)
## remove unused transfer zones ##
gtfs_reader.settings.zoning_settings.set_remove_unused_transfer_zones(True)
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py