.suppress_osm_relation_stop_area_logging(+)

OsmPublicTransportReaderSettings method

Description

Use this method to suppress all logging for any entity part of an OSM relation that is tagged as being a stop area

An OSM relation represents a group of OSM entities, where each OSM relation has a unique that identifies this group.

Signature

.suppress_osm_relation_stop_area_logging(stop_area_osm_ids: List[int])

with

Parameter Type Unit Default Description
stop_area_osm_ids List of int N/A N/A Stop area OSM relation ids

Return type

N/A

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>")

# Suppress logging for given OSM relation ids
osm_reader.settings.pt_settings.suppress_osm_relation_stop_area_logging([1234, 5678, 91011])

See also

N/A

Source code

Class OsmPublicTransportSettingsWrapper in converterwrappers.py