.is_remove_dangling_transfer_zone_groups()

OsmPublicTransportReaderSettings method

Description

Verify if dangling transfer zone groups are to be removed. A transfer zone group is considered dangling if it has no transfer zones, or its transfer zones are unused and have been removed.

Default is True

Signature

is_remove_dangling_transfer_zone_groups() -> bool

Return type

bool

Example 1

from planit import *

# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)

# example Open Street Map (OSM) intermodal reader        
osm_reader = intermodal_converter.create_reader(IntermodalReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")

# Verify setting
assert osm_reader.settings.pt_settings.is_remove_dangling_transfer_zone_groups() is True

See also

N/A

Source code

Class OsmPublicTransportSettingsWrapper in converterwrappers.py