.set_free_flow_travel_time_units(+)

TntpNetworkReaderSettings method

Description

Set the unit for the interpretation of the free flow travel time in the TNTP inputs. The time unit is defined in the custom TNTP TimeUnits enum.

Signature

.set_free_flow_travel_time_units(time_unit: TimeUnits)

with

Parameter Type Unit Default Description
time_unit TimeUnits N/A HOURS The time unit

Return type

N/A

Example 1

from planit import *

# create a network converter
planit_instance = Planit()
network_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)

# TNTP network reader        
reader = network_converter.create_reader(NetworkReaderType.TNTP)
reader.settings.set_free_flow_travel_time_units(TimeUnits.HOURS)

See also

N/A

Source code

Class TntpNetworkReaderSettingsWrapper in converterwrappers.py