MatsimPtServicesWriterSettings

MatsimPtServicesWriterSettings instance

The MatsimPtServicesWriterSettings instance is accessible via the MatsimIntermodalWriterSettings its .pt_services_settings property. It allows the user to configure the
public transport service schedule aspects of the MatsimIntermodalWriter.

Methods

A MatsimPtServicesWriterSettings instance exposes the following methods. The Compulsory column indicates it the user is expected to configure this setting explicitly or not.

Name Compulsory Default Description
.set_await_departures(+) NO False Set the await departures flag to pass on to MATSim schedules
.set_country(+) NO Context dependent Set the country this zoning resides in, used to determine the coordinate reference system to apply
.set_output_directory(+) NO N/A Set the output directory to persist the MATSim transit file(s) to
.set_output_file(+) NO transitschedule Set the MATSim transit schedule (XML) output file name to use (without extension)

CONTINUE HERE –> ADD METHODS FOR THIS CLASS

Properties

N/A

Example 1

from planit import *

# create an intermodal 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)
# This updates zoning and network output dir 
matsim_writer.settings.set_output_directory("<path_to_output_dir>")

# adjust pt services settings 
matsim_writer.settings.pt_services_settings.<some_method> 

# perform conversion
intermodal_converter.convert(osm_reader,matsim_writer)

See also

MatsimIntermodalWriterSettings MATSim intermodal writer settings class these zoning settings reside on

Source code

Class WriterSettingsWrapper in converterwrappers.py


.set_await_departures(+)

MatsimPtServicesWriterSettings method

.set_country(+)

MatsimPtServicesWriterSettings method

.set_output_directory(+)

MatsimPtServicesWriterSettings method

.set_output_file_name(+)

MatsimPtServicesWriterSettings method