.force_create_new_transfer_zone_for_gtfs_stops(+)
GtfsZoningReaderSettings method
Description
Indicate for which GTFS stops the algorithm should always create a new transfer zone even if it can be matched to an existing transfer zone.
Signature
.force_create_new_transfer_zone_for_gtfs_stops(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 disallow a joint mapping |
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>)
## force create new transfer zones for given GTFS stop ids ##
gtfs_reader.settings.zoning_settings.force_create_new_transfer_zone_for_gtfs_stops(
["gtfs_stop_id_9", "gtfs_stop_id_10"])
See also
N/A
Source code
Class GtfsZoningReaderSettingsWrapper
in converterwrappers.py