.set_station_to_waiting_area_search_radius_meters(+)
Description
In OSM, a station has a different purpose depending on its geometric context. If part of a stop area, it merely reflects a point of reference and the name of the station as it is known by the public. It does not however represent the whole station, this is done by the platforms and stop locations of the stop area. Alternatively, if the station is not part of a stop area the reader will attempt to match an OSM station node to the nearest platform (and its stop area if present) within a reasonable distance. If this can be done, the stop area/platform(s) take on the station name (if appropriate) and the station is incorporated in the stop area. The radius of this search to match an OSM station node to nearby pt infrastructure is set with this method.
The larger the radius the more computationally costly the parsing becomes and also the larger the risk a platform that does not actually belongs to the same station is found (for example if the station is tagged as a stand alone station without any platforms), the smaller the radius the larger the risk a viable stop_location cannot be found.
If no matching platform can be found for a station not part of a stop area, the station is considered a stand alone station. In this case Planit will attempt to create virtual platforms and stop locations if possible, see also the set_station_to_parallel_tracks_search_radius_meters(+) method. Practically this occurs outside built up areas where no detailed information on the infrastructure is yet tagged.
Signature
.set_station_to_waiting_area_search_radius_meters(radius_meters: float)
with
Parameter | Type | Unit | Default | Description |
---|---|---|---|---|
radius_meters |
float |
Meters |
25.0 |
Desired search radius in meters |
Return type
N/A
Example 1
from planit import *
# create an intermodal converter
planit_instance = Planit()
intermodal_converter = planit_instance.converter_factory.create(ConverterType.NETWORK)
# example Open Street Map (OSM) intermodal reader
osm_reader = intermodal_converter.create_reader(IntermodalReaderType.OSM, "<country_name>")
osm_reader.settings.set_input_file("<path_to_input_file>")
# Increase the search radius to 50 meters
osm_reader.settings.pt_settings.set_station_to_waiting_area_search_radius_meters(50)
See also
N/A
Source code
Class OsmPublicTransportSettingsWrapper
in converterwrappers.py