.activate_logging_for_gtfs_route_by_short_name(+)

GtfsServicesReaderSettings method

Description

Use this method to activate extended logging for specific GTFS routes during parsing.

Use this for example when a GTFS route is generating warnings as a way to get more insight in what is happening.

Signature

.activate_logging_for_gtfs_route_by_short_name(gtfs_route_by_short_name: str)

with

Parameter Type Unit Default Description
gtfs_route_by_short_name str None N/A GTFS route to activate extended logging 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>) ## activate extended logging for given route head sign (short name) ## gtfs_reader.settings.services_settings.activate_logging_for_gtfs_route_by_short_name(`123`)

See also

N/A

Source code

Class GtfsServicesReaderSettingsWrapper in converterwrappers.py