.set_gtfs_stop_to_transfer_zone_search_radius_meters(+)

GtfsZoningReaderSettings method

Description

Use this method to update the search radius for which to search for existing PLANit transfer zones to match the GTFS stop at hand to based on its location. When an existing transfer zone falls outside this radius the GTFS stop will no longer consider it. If it falls within this distance, it verifies if the transfer zone reflects the same stop as the GTFS stop and if so it will be chosen as a valid match.

Signature

.set_gtfs_stop_to_transfer_zone_search_radius_meters(search_radius: float)

with

Parameter Type Unit Default Description
set_gtfs_stop_to_transfer_zone_search_radius_meters float m 40.0 Maximum search radius to consider

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>)

## override max search radius ##
gtfs_reader.settings.zoning_settings.set_gtfs_stop_to_transfer_zone_search_radius_meters(50.0)

See also

N/A

Source code

Class GtfsZoningReaderSettingsWrapper in converterwrappers.py