.zoning_settings

GtfsIntermodalReaderSettings property
Description

The .zoning_settings property allows access to the GtfsZoningReaderSettings and is present on the GtfsIntermodalReaderSettings. These settings are specific to configuring aspects of parsing public transport infrastructure such as poles, platforms, and stations (converted into Transfer zones in PLANit terminology, hence they are captured in zoning_settings).

Return type

GtfsZoningReaderSettings

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>)
gtfs_reader.settings.zoning_settings.<some_method>

See also

GtfsZoningReaderSettings for the GTFS zoning (platforms/poles) settings available

Source code

Class GtfsZoningReaderSettingsWrapper in converterwrappers.py