.railway_settings

OsmNetworkReaderSettings property
Description

The .railway_settings property allows access to the OsmRailwaySettings specific to configuring the parsing of all OSM ways tagged as railway= and is present on the OsmNetworkReaderSettings.

Return type

OsmRailwaySettings

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 and access to its highway settings        
osm_reader = network_converter.create_reader(NetworkReaderType.OSM, "<country_name>")
osm_reader.settings.railway_settings.<some_method>

See also

OsmRailwaySettings the settings available
OsmHighwaySettings the settings available

Source code

Class OsmNetworkReaderSettingsWrapper in converterwrappers.py

Last modified January 1, 0001