.is_group_identical_gtfs_trips()
GtfsServicesReaderSettings method
Description
Verify if the reader is grouping identical trips in a consolidated departure schedule. When True
it is
otherwise it is not
the default setting for this is
True
Signature
.is_group_identical_gtfs_trips() -> bool
Return type
bool
(True
or False
)
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>)
## test for route inlusion ##
assert gtfs_reader.settings.services_settings.is_group_identical_gtfs_trips() is True
See also
N/A
Source code
Class GtfsServicesReaderSettingsWrapper
in converterwrappers.py