.is_excluded_gtfs_stop(+)
GtfsZoningReaderSettings method
Description
Verify if GTFS stop (by id) is excluded
Signature
.is_excluded_gtfs_stop(gtfs_stop_id: str) -> bool
Return type
bool
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>)
## Verify if extended logging is activated ##
gtfs_reader.settings.zoning_settings.exclude_gtfs_stops_by_id(['123456', '8876549'])
gtfs_reader.settings.zoning_settings.is_excluded_gtfs_stop(`123456`) is True
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py