.is_excluded_osm_node(+)

OsmPublicTransportReaderSettings method

Description

Verify if OSM node is marked for exclusion.

Signature

is_excluded_osm_node(osm_node_id: int) -> bool

with

Parameter Type Unit Default Description
osm_node_id int None N/A OSM node 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_node(1234) is False

See also

N/A

Source code

Class OsmPublicTransportSettingsWrapper in converterwrappers.py