PlanitIntermodalWriterSettings

PlanitIntermodalWriterSettings instance

The PlanitIntermodalWriterSettings instance is accessible via the PlanitIntermodalWriter its .settings property. It allows the user to configure the PlanitIntermodalWriter. We differentiate between:

The network settings are identical to the settings exposed by the PlanitNetworkWriter and are described in detail under PlanitNetworkWriterSettings. These settings configure everything related to the physical road and/or rail network.

The zoning (public transport) settings are settings for travel zones (OD zones) and the physical infrastructure directly related to the intermodal aspect of the writer, i.e., the bus stops, train stations, platforms, etc. This information is extracted from PLANit’s intermodal zoning component, e.g., transfer zones, and connectoids (hence its categorisation under zones). They are described under Zoning Settings

The Service network settings are settings for persisting the legs between stops, it is a service network on top of the physical road network. It is typically used for public transport where services are defined in terms of legs on this service network rather than on the physical network.

The Routed services settings reflect the options regarding the (public transport) services themselves, i.e., their schedules and how these are persisted. Routed services are constructed using the service network information and either have a schedule or a frequency.

Minimum configuration requirements

All methods marked as Compulsory=YES in the Methods section are expected to be configured by the user explicitly.

Methods

A PlanitIntermodalWriterSettings instance exposes the following methods.

Name Compulsory Default Description
.set_country(+) NO Context dependent Set the country the intermodal network resides in, used to determine the coordinate reference system to apply
.set_output_directory(+) YES N/A Set the output directory to persist the output files to

Properties

This class exposes the following properties

Property Availability Description
.network_settings Always Settings specific to physical road infrastructure
.zoning_settings Always Settings specific to intermodal public transport transfer (zones) infrastructure and travel zones
.service_network_settings Always Settings specific to service network built on top of phsyical road infrastructure (if any)
.routed_services_settings Always Settings specific to services routed on a service network (if any)

Example 1 - Minimum required settings

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

# PLANit intermodal writer
planit_writer = intermodal_converter.create_writer(IntermodalWriterType.PLANIT)
planit_writer.settings.set_output_directory("<path_to_output_dir>")

# perform conversion
intermodal_converter.convert(osm_reader,planit_writer)

See also

PlanitIntermodalWriter Planit intermodal writer class these settings reside on

Source code

Class PlanitIntermodalWriterSettingsWrapper in converterwrappers.py


.network_settings

PlanitIntermodalWriterSettings property

.routed_services_settings

PlanitIntermodalWriterSettings property

.service_network_settings

PlanitIntermodalWriterSettings property

.set_country(+)

PlanitIntermodalWriterSettings method

.set_output_directory(+)

PlanitNetworkWriterSettings method

.zoning_settings

PlanitIntermodalWriterSettings property

PlanitRoutedServicesWriterSettings

PlanitRoutedServicesWriterSettings instance

PlanitServiceNetworkWriterSettings

PlanitServiceNetworkWriterSettings instance

PlanitZoningWriterSettings

PlanitZoningWriterSettings instance