.activate_all_osm_highway_types()

OsmHighwaySettings method

Description

Option to activate all supported OSM highway types in the parser, resulting in the most detailed network possible.

Signature

.activate_all_osm_highway_types()

Return type

N/A

Example 1

from planit import *

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

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

# indicate to activate all supported OSM highway types for parsing a detailed network
osm_reader.settings.highway_settings.activate_all_osm_highway_types()

See also

N/A

Source code

Class OsmHighwaySettingsWrapper in converterwrappers.py