.activate_osm_rail_mode(+)

OsmRailwaySettings method

Description

Activate chosen OSM rail mode.

Signature

.activate_osm_rail_mode(osm_mode: str)

with

Parameter Type Unit Default Description
osm_mode str None N/A OSM rail mode

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 funicular mode
osm_reader.settings.activate_railway_parser(True)
osm_reader.settings.railway_settings.deactivate_osm_rail_mode("funicular")

See also

N/A

Source code

Class OsmRailwaySettingsWrapper in converterwrappers.py