.get_gtfs_stop_to_transfer_zone_search_radius_meters()

GtfsZoningReaderSettings method

Description

Use this method to get the currently used 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.

The default is 40m

Signature

.get_gtfs_stop_to_transfer_zone_search_radius_meters() -> float

Return type

float

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)
assert round(gtfs_reader.settings.zoning_settings.get_gtfs_stop_to_transfer_zone_search_radius_meters(),0) == 50
 

See also

N/A

Source code

Class GtfsZoningReaderSettingsWrapper in converterwrappers.py