.is_connect_dangling_ferry_stop_to_nearby_ferry_route()

OsmPublicTransportReaderSettings method

Description

Verify if dangling OSM ferry stops are attempted to be connected to a nearby OSM waterway within the given search distance set.

The default for this is set to True

The search radius for this is governed by the set_ferry_stop_to_ferry_route_search_radius_meters method.

Signature

is_connect_dangling_ferry_stop_to_nearby_ferry_route() -> bool

Return type

bool

Example 1

from planit import *

# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)

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

# Verify suppression
assert osm_reader.settings.pt_settings.is_connect_dangling_ferry_stop_to_nearby_ferry_route is True

See also

N/A

Source code

Class OsmPublicTransportSettingsWrapper in converterwrappers.py