.pt_services_settings
MatsimIntermodalWriterSettings property
Description
The .pt_services_settings property allows access to the MatsimPtServicesWriterSettings and
is present on the MatsimIntermodalWriterSettings. These settings allow you to configure the public transport
service schedules aspects of the MATSim writer.
Return type
MatsimPtServicesWriterSettings
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>")
# access pt service specific settings for configuration
matsim_writer.settings.pt_services_settings.<some_method>
# perform conversion
intermodal_converter.convert(osm_reader,matsim_writer)
See also
N/A
Source code
Class MatsimWriterSettingsWrapper in converterwrappers.py