.set_speed_units(+)

TntpNetworkReaderSettings method

Description

Set the speed units to expect from the TNTP inputs. These are defined in the custom TNTP SpeedUnits enum.

Signature

.set_speed_units(speed_unit: SpeedUnits)

with

Parameter Type Unit Default Description
speed_unit SpeedUnits N/A KM_H The speed 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_speed_units(SpeedUnits.MILES_H)

See also

N/A

Source code

Class TntpNetworkReaderSettingsWrapper in converterwrappers.py