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. See main.py for parameter explanations.

  • SIMULATION_DATA (dict[str, Any]) – The simulation data. SIREN_DRIVING_MATRIX and NODES_HOSPITAL are at least necessary. SIREN_DRIVING_MATRIX is based on TRAVEL_TIMES_FILE. NODES_HOSPITAL is based on HOSPITAL_FILE. See main.py and the input data section on the ELASPY website for explanations.

Returns:

int – The selected hospital ID.