ambulance_simulation.select_hospital#
- ambulance_simulation.select_hospital(source_location_ID: int, SIMULATION_PARAMETERS: dict[str, Any], SIMULATION_DATA: dict[str, Any]) int #
Selects the closest hospital based on a source location.
The closest hospital is based on the driving time with sirens on.
- Parameters:
source_location_ID (int) – The location ID of the source.
SIMULATION_PARAMETERS (dict[str, Any]) – The simulation parameters. The parameter
PRINT
is at least necessary. Seemain.py
for parameter explanations.SIMULATION_DATA (dict[str, Any]) – The simulation data.
SIREN_DRIVING_MATRIX
andNODES_HOSPITAL
are at least necessary.SIREN_DRIVING_MATRIX
is based onTRAVEL_TIMES_FILE
.NODES_HOSPITAL
is based onHOSPITAL_FILE
. Seemain.py
and the input data section on the ELASPY website for explanations.
- Returns:
int – The selected hospital ID.