.settings

MatsimIntermodalWriter property
Description

The .settings property allows access to the settings of the MatsimIntermodalWriter.

Return type

MatsimIntermodalWriterSettings implementation

Example 1

from planit import *

# create a network converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)

# Open Street Map (OSM) intermodal reader        
osm_reader = intermodal_converter .create_reader(IntermodalReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")

# MATSIM intermodal writer
matsim_writer = intermodal_converter.create_writer(IntermodalWriterType.MATSIM)
matsim_writer.settings.set_output_directory("<path_to_output_dir>")

# perform conversion
intermodal_converter.convert(osm_reader,matsim_writer)

See also

MatsimIntermodalWriterSettings the settings available

Source code

Class MatsimIntermodalWriterWrapper in converterwrappers.py