.is_speed_limit_defaults_based_on_urban_area()

OsmHighwaySettings method

Description

Verify if the applied speed limit defaults are based on the urban defaults (when True is returned), or not (when False returned).

Currently, these defaults cannot be applied for geographical areas, instead it is either urban or non-urban defaults that are used. This is to be addressed in future versions.

Default is True

Signature

.is_speed_limit_defaults_based_on_urban_area() -> bool

Return type

bool

Example 1

from planit import *

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

# example Open Street Map (OSM) network reader        
osm_reader = network_converter.create_reader(NetworkReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")

# Verify setting
assert osm_reader.settings.highway_settings.is_speed_limit_defaults_based_on_urban_area() is True

See also

N/A

Source code

Class OsmHighwaySettingsWrapper in converterwrappers.py