.is_excluded_osm_way(+)

OsmPublicTransportReaderSettings method

Description

Verify if OSM node is marked for exclusion.

Signature

is_excluded_osm_way(osm_way_id: int) -> bool

with

Parameter Type Unit Default Description
osm_way_id int None N/A OSM way to verify

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 an exclusion
assert osm_reader.settings.pt_settings.is_excluded_osm_way(1234) is False

See also

N/A

Source code

Class OsmPublicTransportSettingsWrapper in converterwrappers.py