.add_log_gtfs_stop_routes(+)

GtfsServicesReaderSettings method

Description

Use this method to mark specific GTFS stops for logging the GTFS routes that use this stop.

Signature

.add_log_gtfs_stop_routes(gtfs_stop_ids: List[str])

with

Parameter Type Unit Default Description
gtfs_stop_ids List of str None N/A GTFS stop ids to log stopping GTFS routes 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>)

## mark certain GTFS stops for extended logging regarding the routes that stop there ##
gtfs_reader.settings.services_settings.add_log_gtfs_stop_routes([`11234587`,`9976342`])

See also

N/A

Source code

Class GtfsServicesReaderSettingsWrapper in converterwrappers.py