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
PRINTis at least necessary. Seemain.pyfor parameter explanations.SIMULATION_DATA (dict[str, Any]) – The simulation data.
SIREN_DRIVING_MATRIXandNODES_HOSPITALare at least necessary.SIREN_DRIVING_MATRIXis based onTRAVEL_TIMES_FILE.NODES_HOSPITALis based onHOSPITAL_FILE. Seemain.pyand the input data section on the ELASPY website for explanations.
- Returns:
int – The selected hospital ID.