.converter_factory

Planit property

Description

The .converter_factory property allows access to a factory instance that allows the user to manufacture converters (hence the name factory). These converters of various types can then be used to convert data formats from on type into another by passing through the Planit memory model.

Return type

ConverterFactory implementation

Example 1

from planit import *

# create project using current working directory
planit_instance = Planit()
converter_factory = planit_instance.converter_factory

# manufacture a network converter for converting network from one format to another
network_converter = converter_factory.create(ConverterType.NETWORK)

See also

NetworkConverter describes the options available to perform conversions between networks
IntermodalConverter describes the options available to perform conversions between intermodal networks, i.e., networks with public transport support

Source code

Class Planit in Planit.py