.set_await_departures(+)

MatsimPtServicesWriterSettings method

Description

Set the await departures flag. When set to True all transit lines by default will be flagged to await their scheduled departure time in the MATSim schedule that is being produced.

Signature

.set_await_departures(flag: bool)

with

Parameter Type Unit Default Description
flag bool None False Choice of the flag

Return type

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>")

# flag to await departures
matsim_writer.settings.pt_services_settings.set_await_departures(True)

# perform conversion
intermodal_converter.convert(osm_reader,matsim_writer)

See also

N/A

Source code

Class WriterSettingsWrapper in converterwrappers.py