Finding suitable spots for placing heart defibrillator equipments in public¶
In this sample, we will observe how site suitability analyses can be performed using the ArcGIS API for Python. The objective of this sample is to find locations in the city of Philadelphia that are suitable for placing AED (Automated External Defibrillator) for public emergencies.
The criteria for suitable places are those that have high incidence of OHCA (Out of Hospital Cardiac Arrests) and be accessible to public, such as commercial areas.
As inputs, we start with geocoded OCHA (Out-of-Hospital Cardiac Arrest) point data, along with a few base layers for the city of Pittsburgh published as feature layers. As output, we need to generate a list of locations that have a high incidence of heart-attacks and located within commercial areas, allowing easy access at times of emergencies.
Table of Contents
- Getting set up
- Create a 600 feet buffer around commercial areas
- Reclassify the density raster
- Perform overlay analysis
from arcgis.gis import GIS from arcgis.mapping import WebMap from arcgis.widgets import MapView from arcgis.features import FeatureCollection, use_proximity from datetime import datetime
gis = GIS(url='https://pythonapi.playground.esri.com/portal', username='arcgis_python', password='amazing_arcgis_123')
ohca_item = gis.content.get('a5719916dff4442789a59680c25a4284') ohca_item
ohca_map_item = gis.content.get('b8b6cf2bcbeb4903a5372b7f4cbfb252') ohca_map_item
Let us take a look at the layers available in this item
for lyr in ohca_item.layers: print(lyr.properties.name)
Heart attack incidence Streets Zoning Boundary
Let us display the Web Map item to view these layers on a map.
map1 = MapView(item=ohca_map_item) map1.legend=True map1