.is_extended_logging_for_gtfs_zone_activated(+)
GtfsZoningReaderSettings method
Description
Verify if extended logging is activated for given GTFS stop (by id)
Signature
.is_extended_logging_for_gtfs_zone_activated(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.activate_extended_logging_for_gtfs_zones(['123456', '8876549'])
gtfs_reader.settings.zoning_settings.is_extended_logging_for_gtfs_zone_activated(`123456`) is True
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py