.activate_osm_road_mode(+)
OsmHighwaySettings method
Description
Activate chosen OSM road mode.
More information on OSM modes; https://wiki.openstreetmap.org/wiki/Key:access
Signature
.activate_osm_road_mode(mode: str)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
mode |
str |
None |
N/A | OSM road mode that is to be activated |
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>")
# activate buses
osm_reader.settings.highway_settings.activate_osm_road_mode("bus")
See also
N/A
Source code
Class OsmHighwaySettingsWrapper
in converterwrappers.py