.is_log_created_gtfs_zones()

GtfsZoningReaderSettings method

Description

Check whether to log all GTFS stops that cannot be matched to (pre)existing PLANit transfer zones

Default is set to False

Signature

.is_log_created_gtfs_zones() -> 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>)

## check if we log every GTFS stop not mapped to an existing one ##
assert gtfs_reader.settings.zoning_settings.is_log_created_gtfs_zones() is False

See also

N/A

Source code

Class GtfsZoningReaderSettingsWrapper in converterwrappers.py