.get_overwritten_waiting_area_mode_access(+)
OsmPublicTransportReaderSettings method
Description
Get the OSM modes deemed eligible for the given OSM waiting area (assuming an override exists).
Signature
get_overwritten_waiting_area_mode_access(osm_waiting_area_id: int, osm_entity_type: OsmEntityType) -> List[str]
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
osm_waiting_area_id |
int |
None |
N/A | Waiting area to verify |
osm_entity_type |
OsmEntityType<enum> |
None |
N/A | Type of waiting area (node, way) |
Return type
List[str]
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>")
# Map waiting area 4321 (which is a node, i.e. likely a bus stop) to OSM way 9876
osm_reader.settings.pt_settings.overwrite_waiting_area_mode_access(4321,OsmEntityType.NODE,['tram']])
assert len(osm_reader.settings.pt_settings.get_overwritten_waiting_area_mode_access(321,OsmEntityType.NODE)] == 1
See also
N/A
Source code
Class OsmPublicTransportSettingsWrapper
in converterwrappers.py