.set_log_created_gtfs_zones(+)

GtfsZoningReaderSettings method

Description

Indicate whether to log all GTFS stops that could not be mapped to (pre)existing PLANit transfer zones.

Signature

.set_log_created_gtfs_zones(flag: bool)

with

Parameter Type Unit Default Description
flag bool N/A False 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>)

## log all GTFS zones that could not be mapped to existing transfer zones in the network ##
gtfs_reader.settings.zoning_settings.set_log_created_gtfs_zones(`True`)            

See also

N/A

Source code

Class GtfsZoningReaderSettingsWrapper in converterwrappers.py