.add_log_gtfs_stop_to_link_mapping(+)
GtfsZoningReaderSettings method
Description
Log which links the defined GTFS stops (by id) were mapped to. this can be useful to either check which link swere initially chosen by the algorithm and possibly override this choice and/or verify the override worked as expected.
Signature
.add_log_gtfs_stop_to_link_mapping(gtfs_stop_ids: List[str])
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
gtfs_stop_ids |
List of str |
N/A | N/A | GTFS stop ids to log their link mapping for |
Return type
N/A
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>)
## log the GTFS stop to link mapping for given GTFS stops ##
gtfs_reader.settings.zoning_settings.add_log_gtfs_stop_to_link_mapping(["gtfs_stop_id_7", "gtfs_stop_id_8"])
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py