.is_include_partial_gtfs_trips_if_stops_in_time_period()
GtfsServicesReaderSettings method
Description
Verify if the reader is including GTFS trips that only partially fall within the specified time window filter. When True
they
are considered, otherwise they are not.
the default setting for this is
True
Signature
.is_include_partial_gtfs_trips_if_stops_in_time_period() -> 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_include_partial_gtfs_trips_if_stops_in_time_period() is True
See also
N/A
Source code
Class GtfsServicesReaderSettingsWrapper
in converterwrappers.py