.is_disallow_gtfs_stop_to_transfer_zone_joint_mapping(+)
GtfsZoningReaderSettings method
Description
Verify if GTFS stop (by id) is not allowed a joint mapping to the same transfer zone
Signature
.is_disallow_gtfs_stop_to_transfer_zone_joint_mapping(gtfs_stop_id: str) -> bool
Return type
bool
Example 1
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.INTERMODAL)
# <some_intermodal_reader> = construct OSM or PLANit intermodal reader for example
# GTFS reader
gtfs_reader: GtfsIntermodalReaderWrapper = \
intermodal_converter.create_reader(IntermodalReaderType.GTFS, "Australia", <some_intermodal_reader>)
## disallow for given GTFS stop ids to be mapped to the same transfer zone and verify##
gtfs_reader.settings.zoning_settings.disallow_gtfs_stop_to_transfer_zone_joint_mapping(
["gtfs_stop_id_9", "gtfs_stop_id_10"])
assert gtfs_reader.settings.zoning_settings.is_disallow_gtfs_stop_to_transfer_zone_joint_mapping("gtfs_stop_id_9") is True
assert gtfs_reader.settings.zoning_settings.is_disallow_gtfs_stop_to_transfer_zone_joint_mapping("gtfs_stop_id_99") is False
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py