.is_highway_parser_active()

OsmNetworkReaderSettings method

Description

Verify if the highway parser is active. When activated the parser will consider all activated OSM highway types, when deactivated it considers none of them.

By default, the highway parser is activated. This call is delegated to the same method in .highway_settings.

Signature

.is_highway_parser_active()-> bool

Return type

bool

Example 1

from planit import *

# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)

# example Open Street Map (OSM) network reader        
osm_reader = network_converter.create_reader(NetworkReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")

# Verify state
assert osm_reader.settings.is_highway_parser_active() is False

See also

.activate_highway_parser(+)

Source code

Class OsmNetworkReaderSettingsWrapper in converterwrappers.py