.is_overwritten_gtfs_stop_location(+)

GtfsZoningReaderSettings method

Description

Check whether a force override of the GTFS stop location exists.

Signature

.is_overwritten_gtfs_stop_location(gtfs_stop_id: str) -> bool

Return type

bool

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

## check if location is overwritten ##
gtfs_reader.settings.zoning_settings.set_overwrite_gtfs_stop_location("a_gtfs_stop_id", 33.33, 148.148)
assert gtfs_reader.settings.zoning_settings.is_overwritten_gtfs_stop_location("a_gtfs_stop_id") is True            

See also

N/A

Source code

Class GtfsZoningReaderSettingsWrapper in converterwrappers.py