From 3e4cda9965d7bf4d9e62a139e074857c6adcfc72 Mon Sep 17 00:00:00 2001 From: Manushi Majumdar Date: Sat, 20 Sep 2025 00:09:46 -0400 Subject: [PATCH 1/2] updated data and mapping --- .../part4_find_closest_facilities.ipynb | 1191 ++++++++--------- 1 file changed, 559 insertions(+), 632 deletions(-) diff --git a/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb b/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb index 854b0ba1dc..35abd35d9f 100644 --- a/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb +++ b/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb @@ -101,7 +101,8 @@ "source": [ "from arcgis.gis import GIS\n", "import arcgis.network as network\n", - "from arcgis.features import FeatureLayer, Feature, FeatureSet, use_proximity, FeatureCollection\n", + "from arcgis.features import FeatureLayer, Feature, FeatureSet, FeatureCollection, use_proximity\n", + "from arcgis.map.symbols import SimpleLineSymbolEsriSLS, PictureMarkerSymbolEsriPMS\n", "import pandas as pd\n", "import time\n", "import datetime as dt" @@ -113,7 +114,7 @@ "metadata": {}, "outputs": [], "source": [ - "my_gis = GIS('home')" + "my_gis = GIS(profile='your_online_profile')" ] }, { @@ -134,39 +135,25 @@ }, { "cell_type": "code", - "execution_count": 4, + "execution_count": 3, "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "You do not have permissions to access this resource or perform this operation.\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Trying from an alternative source...\n" - ] - }, { "data": { "text/html": [ "
\n", " \n", "\n", "
\n", - " hospitals_SB_county\n", + " hospitals_SB_county\n", " \n", - "
Feature Layer Collection by arcgis_python\n", - "
Last Modified: September 27, 2019\n", - "
0 comments, 10 views\n", + "

Feature Layer Collection by arcgis_python\n", + "
Last Modified: October 21, 2021\n", + "
0 comments, 0 views\n", "
\n", "
\n", " " @@ -175,36 +162,14 @@ "" ] }, + "execution_count": 3, "metadata": {}, - "output_type": "display_data" + "output_type": "execute_result" } ], "source": [ - "\"\"\" This try-except block will help you download the CSV and publish to current GIS object, if \n", - " \"You do not have permissions to access this resource or perform this operation.\"\n", - "\"\"\"\n", - "try:\n", - " hospital_item = my_gis.content.get(\"a2817bf9632a43f5ad1c6b0c153b0fab\")\n", - "except RuntimeError as ne:\n", - " try:\n", - " print(\"Trying from an alternative source...\")\n", - " hospital_item = my_gis.content.get(\"50fb63f303304835a048d16bd86c3024\")\n", - " except RuntimeError as ne:\n", - " print(\"Trying to publish from csv...\")\n", - " import requests\n", - " import csv\n", - " import os\n", - "\n", - " out_file_name = 'hospitals_SB_county.csv'\n", - " url = \"https://data.chhs.ca.gov/datastore/dump/641c5557-7d65-4379-8fea-6b7dedbda40b?q=&sort=_id+asc&fields=OSHPD_ID%2CFACILITY_NAME%2CLICENSE_NUM%2CFACILITY_LEVEL_DESC%2CDBA_ADDRESS1%2CDBA_CITY%2CDBA_ZIP_CODE%2CCOUNTY_CODE%2CCOUNTY_NAME%2CER_SERVICE_LEVEL_DESC%2CTOTAL_NUMBER_BEDS%2CFACILITY_STATUS_DESC%2CFACILITY_STATUS_DATE%2CLICENSE_TYPE_DESC%2CLICENSE_CATEGORY_DESC%2CLATITUDE%2CLONGITUDE&filters=%7B%22COUNTY_CODE%22%3A+%5B%2236%22%5D%7D&format=csv\"\n", - " download = requests.get(url)\n", - "\n", - " with open(out_file_name, 'w') as out_file:\n", - " out_file.writelines(download.text)\n", - " print(out_file_name)\n", - " csv_item = my_gis.content.add({}, out_file_name)\n", - " hospital_item = csv_item.publish()\n", - "display(hospital_item)" + "hospital_item = my_gis.content.get(\"e438435c220b4713b0a5779a8ebb5d16\")\n", + "hospital_item" ] }, { @@ -238,29 +203,12 @@ { "cell_type": "code", "execution_count": 5, - "metadata": { - "scrolled": true - }, + "metadata": {}, "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "\n", - "'Invalid field: County' parameter is invalid\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Trying from an alternative approach...\n" - ] - }, { "data": { "text/plain": [ - " 33 features" + " 36 features" ] }, "metadata": {}, @@ -268,16 +216,7 @@ } ], "source": [ - "\"\"\" If you are using the exisiting layer from Esri_LivngAtlas, there is a \"County\" column in the dataset;\n", - " or else, the feature layer collection published from the downloaded CSV file is already targetted at SB County.\n", - "\"\"\"\n", - "try:\n", - " facilities = hospital_fl.query(where=\"County='SAN BERNARDINO' AND State='CA'\", as_df=False)\n", - "except RuntimeError as re:\n", - " \"\"\" when seeing 'Invalid field: County' parameter is invalid\n", - " \"\"\"\n", - " print(\"Trying from an alternative approach...\")\n", - " facilities = hospital_fl.query(where=\"Dba_city='REDLANDS' or Dba_city='LOMA LINDA'\", as_df=False)\n", + "facilities = hospital_fl.query(where=\"DBA_CITY='Redlands' or DBA_CITY='Loma Linda'\", as_df=False)\n", "display(facilities)" ] }, @@ -350,28 +289,28 @@ }, { "cell_type": "code", - "execution_count": 12, + "execution_count": 10, "metadata": {}, "outputs": [], "source": [ - "hospital_symbol = {\"type\":\"esriPMS\",\n", - " \"url\":\"http://static.arcgis.com/images/Symbols/SafetyHealth/Hospital.png\",\n", - " \"contentType\": \"image/png\", \"width\":20, \"height\":20}\n", + "hospital_symbol = PictureMarkerSymbolEsriPMS(**{\"type\":\"esriPMS\",\n", + " \"url\":\"http://static.arcgis.com/images/Symbols/SafetyHealth/Hospital.png\",\n", + " \"contentType\":\"image/png\",\"width\":20,\"height\":20})\n", "\n", - "map1.draw(facilities, symbol=hospital_symbol)" + "map1.content.draw(facilities, symbol=hospital_symbol)" ] }, { "cell_type": "code", - "execution_count": 13, + "execution_count": 11, "metadata": {}, "outputs": [], "source": [ - "traffic_accident_symbol = {\"type\":\"esriPMS\",\n", - " \"url\":\"http://static.arcgis.com/images/Symbols/Transportation/TrafficAccident.png\",\n", - " \"contentType\": \"image/png\", \"width\":20, \"height\":20}\n", + "traffic_accident_symbol = PictureMarkerSymbolEsriPMS(**{\"type\":\"esriPMS\",\n", + " \"url\":\"http://static.arcgis.com/images/Symbols/Transportation/TrafficAccident.png\",\n", + " \"contentType\":\"image/png\",\"width\":20,\"height\":20})\n", "\n", - "map1.draw(incidents, symbol=traffic_accident_symbol)" + "map1.content.draw(incidents, symbol=traffic_accident_symbol)" ] }, { @@ -411,7 +350,7 @@ }, { "cell_type": "code", - "execution_count": 14, + "execution_count": 12, "metadata": {}, "outputs": [ { @@ -425,7 +364,8 @@ "name": "stdout", "output_type": "stream", "text": [ - "Wall time: 11.3 s\n" + "CPU times: total: 1.38 s\n", + "Wall time: 20.5 s\n" ] } ], @@ -448,7 +388,7 @@ }, { "cell_type": "code", - "execution_count": 15, + "execution_count": 13, "metadata": {}, "outputs": [ { @@ -465,16 +405,16 @@ }, { "cell_type": "code", - "execution_count": 21, + "execution_count": 14, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "ToolOutput(output_routes= 12 features, output_directions= 0 features, solve_succeeded=True, output_closest_facilities= 11 features, output_network_analysis_layer={\"url\": \"https://logistics.arcgis.com/arcgis/rest/directories/arcgisjobs/world/closestfacility_gpserver/j38b103b375534c4395e658e6a7aa4f47/scratch/_ags_gpna33351376bcbd449db338247fb6730729.lyr\"}, output_route_data=None, output_incidents= 3 features, output_facilities= 33 features, output_result_file=None)" + "ToolOutput(output_routes= 12 features, output_directions= 0 features, solve_succeeded=True, output_closest_facilities= 12 features, output_network_analysis_layer={\"url\": \"https://prd-ct-routingservices-usw2.s3.us-west-2.amazonaws.com/cloudgp-logistics/arcgisjobs/world/closestfacility_gpserver/j2100b2b98a9542d6b11675cf9c25c7f8/scratch/_ags_jf07dc20db3544279865721992acd5cf8.lyr?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJ2XLM5DDVMAUWGU%2F20250920%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250920T032911Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGcaCXVzLXdlc3QtMiJGMEQCIGXSfRBU9x7c6sz05L1cOSBZyXoAAcrCP2u8n9skplKaAiAOtr2m8lCQkjc4%2FxNhB0RV30O2aBZ5vcKEMYL1PSqNcCq7BQjg%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDAyMTEyMTE2NTEyNiIMDuLhbSzfH7ySyIsqKo8F%2BsCdPWZ0u%2BGLXzlGsdUtuRf3xAK0L2IaAtlI8qtqFeBNo%2BLZiD65ox4Rp6NEIfkJqyUlX7lWkYz3VOuEYPL8yqE2Drb5QA4EsNQQZhLd5M4HJxKhEgNBCfMekRO521%2BYOcKXENt1l0tjt4WFrO9gIvc1bgorIvpaboNkBlWpC0PTX%2F1476pFSamg%2FzmQFNdFyOdJk5JkWyX5Jbq3tMcESmUM7bQmGWPdPp84eHFfX9kJwUpSVibX1U3Ql0fyGN4PsCRUUhNZcfc5i1dvO%2Bxb7I7u2UCr0BLQ7hDln7qtt%2B16k0brmfnfSLBF5cf4pHA5aLf2DuQRbAdjWGZ5yPC%2BJnfKRbTZus%2FnvqHmMojKwGDlrPWfSfLq8tLKNxpah26gacdsGuAKsoTxiY5%2FRGOZo2PbRXBJg%2B68h%2BVdmZCcbns%2B5mZwA8Rz8Bz0%2BN2fCRYCVCBHZBt0RyjgZZJun4%2FyzXQ3i%2Fo74agIWVM9229RiwJZXV6Nf4iKA9trGOf5FINFRTGnavQRbpY%2BCBwzeQUcIwCOuWCFh4WF57uRi2C6BApizUhSLYFH7cfvwq%2FaEQE2AJDlm%2B1AptR2C2yJZFLyhPYS4CHnZ4b%2BsXlEUTLctJoQoXF3GMq4dru%2FJ0eAFRqjFvz15m0lMXiGk%2B%2FECpBSgjwku5gat3yFe20gCRCOAuwBtZhyjTmqeKEg%2BIcnMPRZuOVHZAJ%2BbUnIxmKky3qZUdVU8eHAGmMRZz9XPHalFQHMdAisP7%2FFpqmdPXg1s7OBdTzzTsmI%2Bybzeim7hHknJIHi2i1kZjOy1BGqeqeutn57Ys1oO78f6NuUQn1l9dytkccAEbWC8UuWFmnIMv8ddAPeJfceJi6N5bRXQwDUETCnyLfGBjqyAUADlNLHXVyZSF%2BlHgTs2I4fWRj10A%2BxrVjCAVK8%2BIYVKQumJrEhuEYyhB4AXdNt5FUWx8OsGjxy%2FdwecA2ZYEU%2B%2BKPP72xbLzOYiCijDPA8aWq%2B8G5yfu3TARDtpBmobvubYUT%2FvB7FHVR0JqF25wPsKz2ZhmYnb294GN0bJXZyNK2MxvWbfJNuvW7BfDoMkolikXWaEtvLtJTDBrf82aguaAXkFcCjPdgPvxK%2B3irGPl4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=9b6210d1fed24137e1412bc0c984ae0c96d3855bc660102a73c706b2cc92c2d2\"}, output_route_data=None, output_incidents= 3 features, output_facilities= 36 features, output_result_file=None, output_network_analysis_layer_package={\"url\": \"https://prd-ct-routingservices-usw2.s3.us-west-2.amazonaws.com/cloudgp-logistics/arcgisjobs/world/closestfacility_gpserver/j2100b2b98a9542d6b11675cf9c25c7f8/scratch/_ags_j445b14be090a4c2ca07904bbe9bf1886.lpkx?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJ2XLM5DDVMAUWGU%2F20250920%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250920T032911Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGcaCXVzLXdlc3QtMiJGMEQCIGXSfRBU9x7c6sz05L1cOSBZyXoAAcrCP2u8n9skplKaAiAOtr2m8lCQkjc4%2FxNhB0RV30O2aBZ5vcKEMYL1PSqNcCq7BQjg%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDAyMTEyMTE2NTEyNiIMDuLhbSzfH7ySyIsqKo8F%2BsCdPWZ0u%2BGLXzlGsdUtuRf3xAK0L2IaAtlI8qtqFeBNo%2BLZiD65ox4Rp6NEIfkJqyUlX7lWkYz3VOuEYPL8yqE2Drb5QA4EsNQQZhLd5M4HJxKhEgNBCfMekRO521%2BYOcKXENt1l0tjt4WFrO9gIvc1bgorIvpaboNkBlWpC0PTX%2F1476pFSamg%2FzmQFNdFyOdJk5JkWyX5Jbq3tMcESmUM7bQmGWPdPp84eHFfX9kJwUpSVibX1U3Ql0fyGN4PsCRUUhNZcfc5i1dvO%2Bxb7I7u2UCr0BLQ7hDln7qtt%2B16k0brmfnfSLBF5cf4pHA5aLf2DuQRbAdjWGZ5yPC%2BJnfKRbTZus%2FnvqHmMojKwGDlrPWfSfLq8tLKNxpah26gacdsGuAKsoTxiY5%2FRGOZo2PbRXBJg%2B68h%2BVdmZCcbns%2B5mZwA8Rz8Bz0%2BN2fCRYCVCBHZBt0RyjgZZJun4%2FyzXQ3i%2Fo74agIWVM9229RiwJZXV6Nf4iKA9trGOf5FINFRTGnavQRbpY%2BCBwzeQUcIwCOuWCFh4WF57uRi2C6BApizUhSLYFH7cfvwq%2FaEQE2AJDlm%2B1AptR2C2yJZFLyhPYS4CHnZ4b%2BsXlEUTLctJoQoXF3GMq4dru%2FJ0eAFRqjFvz15m0lMXiGk%2B%2FECpBSgjwku5gat3yFe20gCRCOAuwBtZhyjTmqeKEg%2BIcnMPRZuOVHZAJ%2BbUnIxmKky3qZUdVU8eHAGmMRZz9XPHalFQHMdAisP7%2FFpqmdPXg1s7OBdTzzTsmI%2Bybzeim7hHknJIHi2i1kZjOy1BGqeqeutn57Ys1oO78f6NuUQn1l9dytkccAEbWC8UuWFmnIMv8ddAPeJfceJi6N5bRXQwDUETCnyLfGBjqyAUADlNLHXVyZSF%2BlHgTs2I4fWRj10A%2BxrVjCAVK8%2BIYVKQumJrEhuEYyhB4AXdNt5FUWx8OsGjxy%2FdwecA2ZYEU%2B%2BKPP72xbLzOYiCijDPA8aWq%2B8G5yfu3TARDtpBmobvubYUT%2FvB7FHVR0JqF25wPsKz2ZhmYnb294GN0bJXZyNK2MxvWbfJNuvW7BfDoMkolikXWaEtvLtJTDBrf82aguaAXkFcCjPdgPvxK%2B3irGPl4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=eea47fb71957220650941357362e6a5de6fb08809a1ebe1af5320f744a5df99e\"}, output_direction_points=None, output_direction_lines=None, usage_cost={'numObjects': 12, 'credits': 6.0})" ] }, - "execution_count": 21, + "execution_count": 14, "metadata": {}, "output_type": "execute_result" } @@ -492,7 +432,7 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 16, "metadata": { "scrolled": true }, @@ -500,10 +440,10 @@ { "data": { "text/plain": [ - "'https://logistics.arcgis.com/arcgis/rest/directories/arcgisjobs/world/closestfacility_gpserver/j38b103b375534c4395e658e6a7aa4f47/scratch/_ags_gpna33351376bcbd449db338247fb6730729.lyr'" + "'https://prd-ct-routingservices-usw2.s3.us-west-2.amazonaws.com/cloudgp-logistics/arcgisjobs/world/closestfacility_gpserver/j2100b2b98a9542d6b11675cf9c25c7f8/scratch/_ags_jf07dc20db3544279865721992acd5cf8.lyr?X-Amz-Algorithm=AWS4-HMAC-SHA256&X-Amz-Credential=ASIAQJ2XLM5DDVMAUWGU%2F20250920%2Fus-west-2%2Fs3%2Faws4_request&X-Amz-Date=20250920T032911Z&X-Amz-Expires=86400&X-Amz-Security-Token=IQoJb3JpZ2luX2VjEGcaCXVzLXdlc3QtMiJGMEQCIGXSfRBU9x7c6sz05L1cOSBZyXoAAcrCP2u8n9skplKaAiAOtr2m8lCQkjc4%2FxNhB0RV30O2aBZ5vcKEMYL1PSqNcCq7BQjg%2F%2F%2F%2F%2F%2F%2F%2F%2F%2F8BEAAaDDAyMTEyMTE2NTEyNiIMDuLhbSzfH7ySyIsqKo8F%2BsCdPWZ0u%2BGLXzlGsdUtuRf3xAK0L2IaAtlI8qtqFeBNo%2BLZiD65ox4Rp6NEIfkJqyUlX7lWkYz3VOuEYPL8yqE2Drb5QA4EsNQQZhLd5M4HJxKhEgNBCfMekRO521%2BYOcKXENt1l0tjt4WFrO9gIvc1bgorIvpaboNkBlWpC0PTX%2F1476pFSamg%2FzmQFNdFyOdJk5JkWyX5Jbq3tMcESmUM7bQmGWPdPp84eHFfX9kJwUpSVibX1U3Ql0fyGN4PsCRUUhNZcfc5i1dvO%2Bxb7I7u2UCr0BLQ7hDln7qtt%2B16k0brmfnfSLBF5cf4pHA5aLf2DuQRbAdjWGZ5yPC%2BJnfKRbTZus%2FnvqHmMojKwGDlrPWfSfLq8tLKNxpah26gacdsGuAKsoTxiY5%2FRGOZo2PbRXBJg%2B68h%2BVdmZCcbns%2B5mZwA8Rz8Bz0%2BN2fCRYCVCBHZBt0RyjgZZJun4%2FyzXQ3i%2Fo74agIWVM9229RiwJZXV6Nf4iKA9trGOf5FINFRTGnavQRbpY%2BCBwzeQUcIwCOuWCFh4WF57uRi2C6BApizUhSLYFH7cfvwq%2FaEQE2AJDlm%2B1AptR2C2yJZFLyhPYS4CHnZ4b%2BsXlEUTLctJoQoXF3GMq4dru%2FJ0eAFRqjFvz15m0lMXiGk%2B%2FECpBSgjwku5gat3yFe20gCRCOAuwBtZhyjTmqeKEg%2BIcnMPRZuOVHZAJ%2BbUnIxmKky3qZUdVU8eHAGmMRZz9XPHalFQHMdAisP7%2FFpqmdPXg1s7OBdTzzTsmI%2Bybzeim7hHknJIHi2i1kZjOy1BGqeqeutn57Ys1oO78f6NuUQn1l9dytkccAEbWC8UuWFmnIMv8ddAPeJfceJi6N5bRXQwDUETCnyLfGBjqyAUADlNLHXVyZSF%2BlHgTs2I4fWRj10A%2BxrVjCAVK8%2BIYVKQumJrEhuEYyhB4AXdNt5FUWx8OsGjxy%2FdwecA2ZYEU%2B%2BKPP72xbLzOYiCijDPA8aWq%2B8G5yfu3TARDtpBmobvubYUT%2FvB7FHVR0JqF25wPsKz2ZhmYnb294GN0bJXZyNK2MxvWbfJNuvW7BfDoMkolikXWaEtvLtJTDBrf82aguaAXkFcCjPdgPvxK%2B3irGPl4%3D&X-Amz-SignedHeaders=host&X-Amz-Signature=9b6210d1fed24137e1412bc0c984ae0c96d3855bc660102a73c706b2cc92c2d2'" ] }, - "execution_count": 17, + "execution_count": 16, "metadata": {}, "output_type": "execute_result" } @@ -523,7 +463,7 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 17, "metadata": {}, "outputs": [ { @@ -558,111 +498,111 @@ " \n", " \n", " 0\n", - " Incident at Esri - Location 27\n", - " 18:17:38\n", - " 18:20:19\n", + " Incident at Esri - Location 31\n", + " 03:28:58\n", + " 03:30:50\n", " C100045\n", - " 1.103517\n", - " 2.671637\n", + " 0.87555\n", + " 1.864816\n", " \n", " \n", " 1\n", - " Incident at Esri - Location 28\n", - " 18:17:38\n", - " 18:20:19\n", + " Incident at Esri - Location 32\n", + " 03:28:58\n", + " 03:30:50\n", " C100045\n", - " 1.103517\n", - " 2.671637\n", + " 0.87555\n", + " 1.864816\n", " \n", " \n", " 2\n", - " Incident at Esri - Location 31\n", - " 18:17:38\n", - " 18:20:54\n", + " Incident at Esri - Location 36\n", + " 03:28:58\n", + " 03:31:25\n", " C100045\n", - " 1.229031\n", - " 3.254473\n", + " 1.25017\n", + " 2.45826\n", " \n", " \n", " 3\n", - " Incident at Esri - Location 4\n", - " 18:17:38\n", - " 18:21:29\n", + " Incident at Esri - Location 30\n", + " 03:28:58\n", + " 03:32:21\n", " C100045\n", - " 1.710835\n", - " 3.841322\n", + " 1.863537\n", + " 3.380924\n", " \n", " \n", " 4\n", - " Incident at APT - Location 5\n", - " 18:17:38\n", - " 18:19:09\n", + " Incident at APT - Location 10\n", + " 03:28:58\n", + " 03:29:50\n", " F100086\n", - " 0.772053\n", - " 1.508993\n", + " 0.434045\n", + " 0.860211\n", " \n", " \n", " 5\n", - " Incident at APT - Location 12\n", - " 18:17:38\n", - " 18:19:14\n", + " Incident at APT - Location 17\n", + " 03:28:58\n", + " 03:30:05\n", " F100086\n", - " 0.692399\n", - " 1.583468\n", + " 0.703422\n", + " 1.113239\n", " \n", " \n", " 6\n", - " Incident at APT - Location 16\n", - " 18:17:38\n", - " 18:19:36\n", + " Incident at APT - Location 23\n", + " 03:28:58\n", + " 03:30:32\n", " F100086\n", - " 1.093573\n", - " 1.953791\n", + " 1.261744\n", + " 1.564755\n", " \n", " \n", " 7\n", - " Incident at APT - Location 30\n", - " 18:17:38\n", - " 18:19:50\n", + " Incident at APT - Location 21\n", + " 03:28:58\n", + " 03:30:35\n", " F100086\n", - " 1.288073\n", - " 2.189129\n", + " 1.091988\n", + " 1.618107\n", " \n", " \n", " 8\n", - " Incident at Walmart - Location 23\n", - " 18:17:38\n", - " 18:21:01\n", + " Incident at Walmart - Location 4\n", + " 03:28:58\n", + " 03:30:41\n", " C100097\n", - " 1.269695\n", - " 3.374696\n", + " 0.603005\n", + " 1.710463\n", " \n", " \n", " 9\n", - " Incident at Walmart - Location 26\n", - " 18:17:38\n", - " 18:21:12\n", + " Incident at Walmart - Location 29\n", + " 03:28:58\n", + " 03:31:24\n", " C100097\n", - " 1.413950\n", - " 3.559580\n", + " 1.265384\n", + " 2.438137\n", " \n", " \n", " 10\n", - " Incident at Walmart - Location 6\n", - " 18:17:38\n", - " 18:22:32\n", + " Incident at Walmart - Location 5\n", + " 03:28:58\n", + " 03:31:41\n", " C100097\n", - " 1.978585\n", - " 4.894868\n", + " 1.297613\n", + " 2.723433\n", " \n", " \n", " 11\n", - " Incident at Walmart - Location 31\n", - " 18:17:38\n", - " 18:22:37\n", + " Incident at Walmart - Location 26\n", + " 03:28:58\n", + " 03:31:51\n", " C100097\n", - " 2.099291\n", - " 4.970657\n", + " 1.599973\n", + " 2.878808\n", " \n", " \n", "\n", @@ -670,35 +610,35 @@ ], "text/plain": [ " Name StartTime EndTime IncidentID \\\n", - "0 Incident at Esri - Location 27 18:17:38 18:20:19 C100045 \n", - "1 Incident at Esri - Location 28 18:17:38 18:20:19 C100045 \n", - "2 Incident at Esri - Location 31 18:17:38 18:20:54 C100045 \n", - "3 Incident at Esri - Location 4 18:17:38 18:21:29 C100045 \n", - "4 Incident at APT - Location 5 18:17:38 18:19:09 F100086 \n", - "5 Incident at APT - Location 12 18:17:38 18:19:14 F100086 \n", - "6 Incident at APT - Location 16 18:17:38 18:19:36 F100086 \n", - "7 Incident at APT - Location 30 18:17:38 18:19:50 F100086 \n", - "8 Incident at Walmart - Location 23 18:17:38 18:21:01 C100097 \n", - "9 Incident at Walmart - Location 26 18:17:38 18:21:12 C100097 \n", - "10 Incident at Walmart - Location 6 18:17:38 18:22:32 C100097 \n", - "11 Incident at Walmart - Location 31 18:17:38 18:22:37 C100097 \n", + "0 Incident at Esri - Location 31 03:28:58 03:30:50 C100045 \n", + "1 Incident at Esri - Location 32 03:28:58 03:30:50 C100045 \n", + "2 Incident at Esri - Location 36 03:28:58 03:31:25 C100045 \n", + "3 Incident at Esri - Location 30 03:28:58 03:32:21 C100045 \n", + "4 Incident at APT - Location 10 03:28:58 03:29:50 F100086 \n", + "5 Incident at APT - Location 17 03:28:58 03:30:05 F100086 \n", + "6 Incident at APT - Location 23 03:28:58 03:30:32 F100086 \n", + "7 Incident at APT - Location 21 03:28:58 03:30:35 F100086 \n", + "8 Incident at Walmart - Location 4 03:28:58 03:30:41 C100097 \n", + "9 Incident at Walmart - Location 29 03:28:58 03:31:24 C100097 \n", + "10 Incident at Walmart - Location 5 03:28:58 03:31:41 C100097 \n", + "11 Incident at Walmart - Location 26 03:28:58 03:31:51 C100097 \n", "\n", " Total_Kilometers Total_Minutes \n", - "0 1.103517 2.671637 \n", - "1 1.103517 2.671637 \n", - "2 1.229031 3.254473 \n", - "3 1.710835 3.841322 \n", - "4 0.772053 1.508993 \n", - "5 0.692399 1.583468 \n", - "6 1.093573 1.953791 \n", - "7 1.288073 2.189129 \n", - "8 1.269695 3.374696 \n", - "9 1.413950 3.559580 \n", - "10 1.978585 4.894868 \n", - "11 2.099291 4.970657 " + "0 0.87555 1.864816 \n", + "1 0.87555 1.864816 \n", + "2 1.25017 2.45826 \n", + "3 1.863537 3.380924 \n", + "4 0.434045 0.860211 \n", + "5 0.703422 1.113239 \n", + "6 1.261744 1.564755 \n", + "7 1.091988 1.618107 \n", + "8 0.603005 1.710463 \n", + "9 1.265384 2.438137 \n", + "10 1.297613 2.723433 \n", + "11 1.599973 2.878808 " ] }, - "execution_count": 29, + "execution_count": 17, "metadata": {}, "output_type": "execute_result" } @@ -753,23 +693,23 @@ }, { "cell_type": "code", - "execution_count": 80, + "execution_count": 22, "metadata": {}, "outputs": [], "source": [ "# draw the facilities and incidents on this map\n", - "map2.draw(facilities, symbol=hospital_symbol, attributes={\"title\":\"Hospital Facility\"})\n", - "map2.draw(incidents, symbol=traffic_accident_symbol, attributes={\"title\":\"Incident Location\"})" + "map2.content.draw(facilities, symbol=hospital_symbol, attributes={\"title\":\"Hospital Facility\"})\n", + "map2.content.draw(incidents, symbol=traffic_accident_symbol, attributes={\"title\":\"Incident Location\"})" ] }, { "cell_type": "code", - "execution_count": 82, + "execution_count": 23, "metadata": {}, "outputs": [], "source": [ "# draw the routes on the map\n", - "map2.add_layer(result1.output_routes)" + "map2.content.add(result1.output_routes)" ] }, { @@ -781,7 +721,7 @@ }, { "cell_type": "code", - "execution_count": 84, + "execution_count": 24, "metadata": {}, "outputs": [ { @@ -816,48 +756,48 @@ " \n", " \n", " 0\n", - " Incident at Esri - Location 27\n", - " 18:17:38\n", - " 18:20:19\n", + " Incident at Esri - Location 31\n", + " 03:28:58\n", + " 03:30:50\n", " C100045\n", - " 1.103517\n", - " 2.671637\n", + " 0.87555\n", + " 1.864816\n", " \n", " \n", " 1\n", - " Incident at Walmart - Location 23\n", - " 18:17:38\n", - " 18:21:01\n", + " Incident at Walmart - Location 4\n", + " 03:28:58\n", + " 03:30:41\n", " C100097\n", - " 1.269695\n", - " 3.374696\n", + " 0.603005\n", + " 1.710463\n", " \n", " \n", " 2\n", - " Incident at APT - Location 5\n", - " 18:17:38\n", - " 18:19:09\n", + " Incident at APT - Location 10\n", + " 03:28:58\n", + " 03:29:50\n", " F100086\n", - " 0.772053\n", - " 1.508993\n", + " 0.434045\n", + " 0.860211\n", " \n", " \n", "\n", "" ], "text/plain": [ - " Name StartTime EndTime IncidentID \\\n", - "0 Incident at Esri - Location 27 18:17:38 18:20:19 C100045 \n", - "1 Incident at Walmart - Location 23 18:17:38 18:21:01 C100097 \n", - "2 Incident at APT - Location 5 18:17:38 18:19:09 F100086 \n", + " Name StartTime EndTime IncidentID \\\n", + "0 Incident at Esri - Location 31 03:28:58 03:30:50 C100045 \n", + "1 Incident at Walmart - Location 4 03:28:58 03:30:41 C100097 \n", + "2 Incident at APT - Location 10 03:28:58 03:29:50 F100086 \n", "\n", " Total_Kilometers Total_Minutes \n", - "0 1.103517 2.671637 \n", - "1 1.269695 3.374696 \n", - "2 0.772053 1.508993 " + "0 0.87555 1.864816 \n", + "1 0.603005 1.710463 \n", + "2 0.434045 0.860211 " ] }, - "execution_count": 84, + "execution_count": 24, "metadata": {}, "output_type": "execute_result" } @@ -878,17 +818,17 @@ }, { "cell_type": "code", - "execution_count": 89, + "execution_count": 25, "metadata": {}, "outputs": [], "source": [ - "red_highlight_symbol = {'type': 'esriSLS', 'style': 'esriSLSSolid',\n", - " 'color': [237, 0, 0, 100], 'width': 6}\n", + "red_highlight_symbol = SimpleLineSymbolEsriSLS(**{'type': 'esriSLS', 'style': 'esriSLSSolid',\n", + " 'color': [237, 0, 0, 100], 'width': 6})\n", "\n", "# draw on map\n", - "map2.draw(df4_shortest.spatial.to_featureset(), \n", + "map2.content.draw(df4_shortest.spatial.to_featureset(), \n", " symbol=red_highlight_symbol)\n", - "map2.zoom=14" + "map2.zoom=12" ] }, { @@ -900,7 +840,7 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 26, "metadata": {}, "outputs": [ { @@ -908,26 +848,26 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Closest Facility of hospitals in San Bernadino County from incidents (2)\n", + " Closest Facility of hospitals in San Bernadino County from incidents (2)\n", " \n", - "
Closest Facility of hospitals in San Bernadino County from incidentsWeb Map by portaladmin\n", - "
Last Modified: September 19, 2019\n", + "
Closest Facility of hospitals in San Bernadino County from incidents
Web Map by arcgis_python\n", + "
Last Modified: September 19, 2025\n", "
0 comments, 0 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, - "execution_count": 19, + "execution_count": 26, "metadata": {}, "output_type": "execute_result" } @@ -969,7 +909,7 @@ }, { "cell_type": "code", - "execution_count": 7, + "execution_count": 27, "metadata": {}, "outputs": [], "source": [ @@ -986,7 +926,7 @@ }, { "cell_type": "code", - "execution_count": 8, + "execution_count": 28, "metadata": {}, "outputs": [ { @@ -1002,7 +942,7 @@ " 'Rural Driving Distance']" ] }, - "execution_count": 8, + "execution_count": 28, "metadata": {}, "output_type": "execute_result" } @@ -1020,7 +960,7 @@ }, { "cell_type": "code", - "execution_count": 9, + "execution_count": 29, "metadata": {}, "outputs": [], "source": [ @@ -1030,7 +970,7 @@ }, { "cell_type": "code", - "execution_count": 10, + "execution_count": 30, "metadata": {}, "outputs": [ { @@ -1039,7 +979,7 @@ "(, )" ] }, - "execution_count": 10, + "execution_count": 30, "metadata": {}, "output_type": "execute_result" } @@ -1066,47 +1006,32 @@ }, { "cell_type": "code", - "execution_count": 11, + "execution_count": 31, "metadata": {}, "outputs": [], "source": [ "hospital_layer = {'url': hospital_fl.url, \n", - " 'filter': \"Dba_city='REDLANDS' or Dba_city='Loma Linda'\"}" + " 'filter': \"DBA_CITY='Redlands' or DBA_CITY='Loma Linda'\"}" ] }, { "cell_type": "code", - "execution_count": 16, + "execution_count": null, "metadata": {}, - "outputs": [ - { - "name": "stderr", - "output_type": "stream", - "text": [ - "Network elements with avoid-restrictions are traversed in the output (restriction attribute names: \"Through Traffic Prohibited\").\n" - ] - }, - { - "name": "stdout", - "output_type": "stream", - "text": [ - "Wall time: 36.5 s\n" - ] - } - ], + "outputs": [], "source": [ "%%time\n", "result2 = use_proximity.find_nearest(incidents_fc, hospital_layer, measurement_type=car_mode,\n", " time_of_day=current_time, max_count=4,\n", " context={'outSR': {\"wkid\": 4326}},\n", " search_cutoff=10,\n", - " output_name=\"Find nearest hospital(s) 2d\",\n", + " output_name=\"Find nearest hospitals 2d\",\n", " gis=my_gis)" ] }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 35, "metadata": {}, "outputs": [ { @@ -1114,26 +1039,26 @@ "text/html": [ "
\n", "
\n", - " \n", + " \n", " \n", " \n", "
\n", "\n", "
\n", - " Find nearest hospital(s) 2d\n", + " Find_nearest_hospitals_2d\n", " \n", - "
Feature Layer Collection by arcgis_python\n", - "
Last Modified: November 05, 2019\n", - "
0 comments, 1 views\n", + "

Feature Layer Collection by arcgis_python\n", + "
Last Modified: September 19, 2025\n", + "
0 comments, 0 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, - "execution_count": 17, + "execution_count": 35, "metadata": {}, "output_type": "execute_result" } @@ -1151,17 +1076,17 @@ }, { "cell_type": "code", - "execution_count": 18, + "execution_count": 36, "metadata": {}, "outputs": [ { "data": { "text/plain": [ - "[,\n", - " ]" + "[,\n", + " ]" ] }, - "execution_count": 18, + "execution_count": 36, "metadata": {}, "output_type": "execute_result" } @@ -1172,7 +1097,7 @@ }, { "cell_type": "code", - "execution_count": 57, + "execution_count": 37, "metadata": {}, "outputs": [ { @@ -1196,193 +1121,193 @@ " \n", " \n", " \n", - " COUNTY_CODE\n", - " COUNTY_NAME\n", + " OBJECTID\n", + " OSHPD_ID\n", + " FACILITY_NAME\n", + " LICENSE_NUM\n", + " FACILITY_LEVEL_DESC\n", " DBA_ADDRESS1\n", " DBA_CITY\n", " DBA_ZIP_CODE\n", + " COUNTY_CODE\n", + " COUNTY_NAME\n", " ER_SERVICE_LEVEL_DESC\n", - " FACILITY_LEVEL_DESC\n", - " FACILITY_NAME\n", - " FACILITY_STATUS_DATE\n", + " TOTAL_NUMBER_BEDS\n", " FACILITY_STATUS_DESC\n", - " LATITUDE\n", - " LICENSE_CATEGORY_DESC\n", - " LICENSE_NUM\n", + " FACILITY_STATUS_DATE\n", " LICENSE_TYPE_DESC\n", + " LICENSE_CATEGORY_DESC\n", + " LATITUDE\n", " LONGITUDE\n", - " OBJECTID\n", " ORIG_FID\n", - " OSHPD_ID\n", " SHAPE\n", - " TOTAL_NUMBER_BEDS\n", " \n", " \n", " \n", " \n", - " 6\n", - " 36\n", - " SAN BERNARDINO\n", - " 1180 NEVADA ST\n", - " REDLANDS\n", + " 7\n", + " 8\n", + " 306364122\n", + " REDLANDS DENTAL SURGERY CENTER\n", + " 240000513\n", + " Parent Facility\n", + " 1180 Nevada St\n", + " Redlands\n", " 92374\n", + " 36\n", + " San Bernardino\n", " Not Applicable\n", - " Parent Facility\n", - " REDLANDS DENTAL SURGERY CENTER\n", - " 1993-07-26\n", + " <NA>\n", " Open\n", - " 34.06801\n", - " Surgical Clinic\n", - " 240000513\n", + " 1993-07-26\n", " Clinic\n", + " Surgical Clinic\n", + " 34.06801\n", " -117.21742\n", - " 7\n", - " 121\n", - " 306364122\n", - " {'x': -13048583.5065, 'y': 4037937.7673999965,...\n", - " NaN\n", + " 229\n", + " {\"x\": -117.21741999999995, \"y\": 34.06801000000...\n", " \n", " \n", - " 7\n", + " 8\n", + " 9\n", + " 406364420\n", + " VIGILANS HOME HEALTH SERVICES, INC.\n", + " 550001531\n", + " Parent Facility\n", + " 101 E Redlands Blvd\n", + " Redlands\n", + " 92373\n", " 36\n", - " SAN BERNARDINO\n", - " 1916 ORANGE TREE LN\n", - " REDLANDS\n", - " 92374\n", + " San Bernardino\n", " Not Applicable\n", - " Parent Facility\n", - " INLAND REGIONAL HOSPICE\n", - " 2018-09-26\n", + " <NA>\n", " Open\n", - " 34.06788\n", - " Hospice\n", - " 550002475\n", + " 2010-12-20\n", " Home Health Agency/Hospice\n", - " -117.21934\n", - " 8\n", - " 207\n", - " 406361358\n", - " {'x': -13048797.2399, 'y': 4037920.2974999994,...\n", - " NaN\n", + " Home Health Agency\n", + " 34.05732\n", + " -117.18065\n", + " 251\n", + " {\"x\": -117.18064999999996, \"y\": 34.05732000000...\n", " \n", " \n", - " 8\n", - " 36\n", - " SAN BERNARDINO\n", - " 414 TENNESSEE ST\n", - " REDLANDS\n", + " 9\n", + " 10\n", + " 406364508\n", + " BRIGHT SKY HOSPICE CARE, INC.\n", + " 550002302\n", + " Parent Facility\n", + " 414 Tennessee St\n", + " Redlands\n", " 92373\n", + " 36\n", + " San Bernardino\n", " Not Applicable\n", - " Parent Facility\n", - " BRIGHT SKY HOSPICE CARE, INC.\n", - " 2013-05-29\n", + " <NA>\n", " Open\n", - " 34.05792\n", - " Hospice\n", - " 550002302\n", + " 2013-05-29\n", " Home Health Agency/Hospice\n", + " Hospice\n", + " 34.05792\n", " -117.20004\n", - " 9\n", - " 245\n", - " 406364508\n", - " {'x': -13046648.7738, 'y': 4036581.9209999964,...\n", - " NaN\n", + " 295\n", + " {\"x\": -117.20003999999994, \"y\": 34.05792000000...\n", " \n", " \n", - " 9\n", - " 36\n", - " SAN BERNARDINO\n", - " 414 TENNESSEE ST\n", - " REDLANDS\n", + " 10\n", + " 11\n", + " 406364523\n", + " BRIGHT SKY HOME HEALTH CARE, INC.\n", + " 550003097\n", + " Parent Facility\n", + " 414 Tennessee St\n", + " Redlands\n", " 92373\n", + " 36\n", + " San Bernardino\n", " Not Applicable\n", - " Parent Facility\n", - " BRIGHT SKY HOME HEALTH CARE, INC.\n", - " 2015-06-04\n", + " <NA>\n", " Open\n", - " 34.05792\n", - " Home Health Agency\n", - " 550003097\n", + " 2015-06-04\n", " Home Health Agency/Hospice\n", + " Home Health Agency\n", + " 34.05792\n", " -117.20004\n", - " 10\n", - " 256\n", - " 406364523\n", - " {'x': -13046648.7738, 'y': 4036581.9209999964,...\n", - " NaN\n", + " 305\n", + " {\"x\": -117.20003999999994, \"y\": 34.05792000000...\n", " \n", " \n", - " 10\n", - " 36\n", - " SAN BERNARDINO\n", - " 1323 W COLTON AVE\n", - " REDLANDS\n", + " 11\n", + " 12\n", + " 406364342\n", + " AMERIHEALTH HOSPICE PROVIDER, INC.\n", + " 550000494\n", + " Parent Facility\n", + " 1323 W Colton Ave\n", + " Redlands\n", " 92374\n", + " 36\n", + " San Bernardino\n", " Not Applicable\n", - " Parent Facility\n", - " AMERIHEALTH HOSPICE PROVIDER, INC.\n", - " 2015-03-02\n", + " <NA>\n", " Open\n", - " 34.06285\n", - " Hospice\n", - " 550000494\n", + " 2015-03-02\n", " Home Health Agency/Hospice\n", + " Hospice\n", + " 34.06285\n", " -117.20264\n", - " 11\n", - " 357\n", - " 406364342\n", - " {'x': -13046938.2044, 'y': 4037244.3708999977,...\n", - " NaN\n", + " 448\n", + " {\"x\": -117.20263999999997, \"y\": 34.06285000000...\n", " \n", " \n", "\n", "" ], "text/plain": [ - " COUNTY_CODE COUNTY_NAME DBA_ADDRESS1 DBA_CITY DBA_ZIP_CODE \\\n", - "6 36 SAN BERNARDINO 1180 NEVADA ST REDLANDS 92374 \n", - "7 36 SAN BERNARDINO 1916 ORANGE TREE LN REDLANDS 92374 \n", - "8 36 SAN BERNARDINO 414 TENNESSEE ST REDLANDS 92373 \n", - "9 36 SAN BERNARDINO 414 TENNESSEE ST REDLANDS 92373 \n", - "10 36 SAN BERNARDINO 1323 W COLTON AVE REDLANDS 92374 \n", + " OBJECTID OSHPD_ID FACILITY_NAME LICENSE_NUM \\\n", + "7 8 306364122 REDLANDS DENTAL SURGERY CENTER 240000513 \n", + "8 9 406364420 VIGILANS HOME HEALTH SERVICES, INC. 550001531 \n", + "9 10 406364508 BRIGHT SKY HOSPICE CARE, INC. 550002302 \n", + "10 11 406364523 BRIGHT SKY HOME HEALTH CARE, INC. 550003097 \n", + "11 12 406364342 AMERIHEALTH HOSPICE PROVIDER, INC. 550000494 \n", "\n", - " ER_SERVICE_LEVEL_DESC FACILITY_LEVEL_DESC \\\n", - "6 Not Applicable Parent Facility \n", - "7 Not Applicable Parent Facility \n", - "8 Not Applicable Parent Facility \n", - "9 Not Applicable Parent Facility \n", - "10 Not Applicable Parent Facility \n", + " FACILITY_LEVEL_DESC DBA_ADDRESS1 DBA_CITY DBA_ZIP_CODE \\\n", + "7 Parent Facility 1180 Nevada St Redlands 92374 \n", + "8 Parent Facility 101 E Redlands Blvd Redlands 92373 \n", + "9 Parent Facility 414 Tennessee St Redlands 92373 \n", + "10 Parent Facility 414 Tennessee St Redlands 92373 \n", + "11 Parent Facility 1323 W Colton Ave Redlands 92374 \n", "\n", - " FACILITY_NAME FACILITY_STATUS_DATE \\\n", - "6 REDLANDS DENTAL SURGERY CENTER 1993-07-26 \n", - "7 INLAND REGIONAL HOSPICE 2018-09-26 \n", - "8 BRIGHT SKY HOSPICE CARE, INC. 2013-05-29 \n", - "9 BRIGHT SKY HOME HEALTH CARE, INC. 2015-06-04 \n", - "10 AMERIHEALTH HOSPICE PROVIDER, INC. 2015-03-02 \n", + " COUNTY_CODE COUNTY_NAME ER_SERVICE_LEVEL_DESC TOTAL_NUMBER_BEDS \\\n", + "7 36 San Bernardino Not Applicable \n", + "8 36 San Bernardino Not Applicable \n", + "9 36 San Bernardino Not Applicable \n", + "10 36 San Bernardino Not Applicable \n", + "11 36 San Bernardino Not Applicable \n", "\n", - " FACILITY_STATUS_DESC LATITUDE LICENSE_CATEGORY_DESC LICENSE_NUM \\\n", - "6 Open 34.06801 Surgical Clinic 240000513 \n", - "7 Open 34.06788 Hospice 550002475 \n", - "8 Open 34.05792 Hospice 550002302 \n", - "9 Open 34.05792 Home Health Agency 550003097 \n", - "10 Open 34.06285 Hospice 550000494 \n", + " FACILITY_STATUS_DESC FACILITY_STATUS_DATE LICENSE_TYPE_DESC \\\n", + "7 Open 1993-07-26 Clinic \n", + "8 Open 2010-12-20 Home Health Agency/Hospice \n", + "9 Open 2013-05-29 Home Health Agency/Hospice \n", + "10 Open 2015-06-04 Home Health Agency/Hospice \n", + "11 Open 2015-03-02 Home Health Agency/Hospice \n", "\n", - " LICENSE_TYPE_DESC LONGITUDE OBJECTID ORIG_FID OSHPD_ID \\\n", - "6 Clinic -117.21742 7 121 306364122 \n", - "7 Home Health Agency/Hospice -117.21934 8 207 406361358 \n", - "8 Home Health Agency/Hospice -117.20004 9 245 406364508 \n", - "9 Home Health Agency/Hospice -117.20004 10 256 406364523 \n", - "10 Home Health Agency/Hospice -117.20264 11 357 406364342 \n", + " LICENSE_CATEGORY_DESC LATITUDE LONGITUDE ORIG_FID \\\n", + "7 Surgical Clinic 34.06801 -117.21742 229 \n", + "8 Home Health Agency 34.05732 -117.18065 251 \n", + "9 Hospice 34.05792 -117.20004 295 \n", + "10 Home Health Agency 34.05792 -117.20004 305 \n", + "11 Hospice 34.06285 -117.20264 448 \n", "\n", - " SHAPE TOTAL_NUMBER_BEDS \n", - "6 {'x': -13048583.5065, 'y': 4037937.7673999965,... NaN \n", - "7 {'x': -13048797.2399, 'y': 4037920.2974999994,... NaN \n", - "8 {'x': -13046648.7738, 'y': 4036581.9209999964,... NaN \n", - "9 {'x': -13046648.7738, 'y': 4036581.9209999964,... NaN \n", - "10 {'x': -13046938.2044, 'y': 4037244.3708999977,... NaN " + " SHAPE \n", + "7 {\"x\": -117.21741999999995, \"y\": 34.06801000000... \n", + "8 {\"x\": -117.18064999999996, \"y\": 34.05732000000... \n", + "9 {\"x\": -117.20003999999994, \"y\": 34.05792000000... \n", + "10 {\"x\": -117.20003999999994, \"y\": 34.05792000000... \n", + "11 {\"x\": -117.20263999999997, \"y\": 34.06285000000... " ] }, - "execution_count": 57, + "execution_count": 37, "metadata": {}, "output_type": "execute_result" } @@ -1395,7 +1320,7 @@ }, { "cell_type": "code", - "execution_count": 56, + "execution_count": 38, "metadata": {}, "outputs": [ { @@ -1419,149 +1344,149 @@ " \n", " \n", " \n", + " OBJECTID\n", + " NearRank\n", + " RouteName\n", + " StartTime\n", " EndTime\n", + " StartTimeUTC\n", " EndTimeUTC\n", - " From_CurbApproach\n", + " To_ID\n", " From_ID\n", - " From_ID_Orig\n", - " From_Name\n", - " NearRank\n", - " OBJECTID\n", - " RouteLayerItemID\n", - " RouteLayerItemURL\n", + " Total_Kilometers\n", " ...\n", - " To_ID\n", - " To_LATITUDE\n", - " To_LICENSE_CATEGORY_DESC\n", - " To_LICENSE_NUM\n", + " To_TOTAL_NUMBER_BEDS\n", + " To_FACILITY_STATUS_DESC\n", + " To_FACILITY_STATUS_DATE\n", " To_LICENSE_TYPE_DESC\n", + " To_LICENSE_CATEGORY_DESC\n", + " To_LATITUDE\n", " To_LONGITUDE\n", - " To_OSHPD_ID\n", - " To_TOTAL_NUMBER_BEDS\n", - " Total_Miles\n", - " Total_Minutes\n", + " RouteLayerItemID\n", + " RouteLayerItemURL\n", + " SHAPE\n", " \n", " \n", " \n", " \n", " 7\n", - " 2019-10-24 03:58:35\n", - " 2019-10-24 10:58:35\n", - " 0\n", - " 2\n", - " F100086\n", - " Incident at APT\n", - " 4\n", " 8\n", - " None\n", - " None\n", + " 4\n", + " Incident at APT - Location 21\n", + " 2025-09-20 03:28:58.466000080\n", + " 2025-09-20 03:30:35.552000046\n", + " 2025-09-20 10:28:58.466000080\n", + " 2025-09-20 10:30:35.552000046\n", + " 187\n", + " 2\n", + " 1.091988\n", " ...\n", - " 90\n", - " 34.037440\n", - " Skilled Nursing Facility\n", - " 240000211\n", + " 78\n", + " Open\n", + " 1966-04-25\n", " Long Term Care Facility\n", - " -117.202570\n", - " 206361351\n", - " 78.0\n", - " 0.679478\n", - " 1.602120\n", + " Skilled Nursing Facility\n", + " 34.03744\n", + " -117.20257\n", + " <NA>\n", + " <NA>\n", + " {\"paths\": [[[-117.205199972, 34.0447172080001]...\n", " \n", " \n", " 8\n", - " 2019-10-24 03:59:31\n", - " 2019-10-24 10:59:31\n", - " 0\n", - " 3\n", - " C100097\n", - " Incident at Walmart\n", - " 1\n", " 9\n", - " None\n", - " None\n", + " 1\n", + " Incident at Walmart - Location 4\n", + " 2025-09-20 03:28:58.466000080\n", + " 2025-09-20 03:30:41.094000101\n", + " 2025-09-20 10:28:58.466000080\n", + " 2025-09-20 10:30:41.094000101\n", + " 100\n", + " 3\n", + " 0.603005\n", " ...\n", - " 121\n", - " 34.068010\n", - " Surgical Clinic\n", - " 240000513\n", - " Clinic\n", - " -117.217420\n", - " 306364122\n", - " NaN\n", - " 0.795496\n", - " 2.534579\n", + " <NA>\n", + " Open\n", + " 2019-05-01\n", + " Home Health Agency/Hospice\n", + " Hospice\n", + " 34.06021\n", + " -117.22182\n", + " <NA>\n", + " <NA>\n", + " {\"paths\": [[[-117.222182797, 34.065527402], [-...\n", " \n", " \n", " 9\n", - " 2019-10-24 03:59:43\n", - " 2019-10-24 10:59:43\n", - " 0\n", - " 3\n", - " C100097\n", - " Incident at Walmart\n", - " 2\n", " 10\n", - " None\n", - " None\n", + " 2\n", + " Incident at Walmart - Location 29\n", + " 2025-09-20 03:28:58.466000080\n", + " 2025-09-20 03:31:24.753999949\n", + " 2025-09-20 10:28:58.466000080\n", + " 2025-09-20 10:31:24.753999949\n", + " 229\n", + " 3\n", + " 1.265384\n", " ...\n", - " 207\n", - " 34.067880\n", - " Hospice\n", - " 550002475\n", - " Home Health Agency/Hospice\n", - " -117.219340\n", - " 406361358\n", - " NaN\n", - " 0.885131\n", - " 2.734999\n", + " <NA>\n", + " Open\n", + " 1993-07-26\n", + " Clinic\n", + " Surgical Clinic\n", + " 34.06801\n", + " -117.21742\n", + " <NA>\n", + " <NA>\n", + " {\"paths\": [[[-117.222182797, 34.065527402], [-...\n", " \n", " \n", " 10\n", - " 2019-10-24 04:00:38\n", - " 2019-10-24 11:00:38\n", - " 0\n", + " 11\n", " 3\n", - " C100097\n", - " Incident at Walmart\n", + " Incident at Walmart - Location 5\n", + " 2025-09-20 03:28:58.466000080\n", + " 2025-09-20 03:31:41.871999979\n", + " 2025-09-20 10:28:58.466000080\n", + " 2025-09-20 10:31:41.871999979\n", + " 104\n", " 3\n", - " 11\n", - " None\n", - " None\n", + " 1.297613\n", " ...\n", - " 357\n", - " 34.062850\n", - " Hospice\n", - " 550000494\n", + " <NA>\n", + " Open\n", + " 2019-02-09\n", " Home Health Agency/Hospice\n", - " -117.202640\n", - " 406364342\n", - " NaN\n", - " 1.310982\n", - " 3.658257\n", + " Home Health Agency\n", + " 34.06873\n", + " -117.22612\n", + " <NA>\n", + " <NA>\n", + " {\"paths\": [[[-117.222182797, 34.065527402], [-...\n", " \n", " \n", " 11\n", - " 2019-10-24 04:00:43\n", - " 2019-10-24 11:00:43\n", - " 0\n", - " 3\n", - " C100097\n", - " Incident at Walmart\n", - " 4\n", " 12\n", - " None\n", - " None\n", + " 4\n", + " Incident at Walmart - Location 26\n", + " 2025-09-20 03:28:58.466000080\n", + " 2025-09-20 03:31:51.194000006\n", + " 2025-09-20 10:28:58.466000080\n", + " 2025-09-20 10:31:51.194000006\n", + " 216\n", + " 3\n", + " 1.599973\n", " ...\n", - " 48\n", - " 34.048272\n", - " General Acute Care Hospital\n", - " 240000169\n", - " Hospital\n", - " -117.221174\n", - " 106364268\n", - " 28.0\n", - " 1.235979\n", - " 3.727673\n", + " <NA>\n", + " Open\n", + " 2019-10-31\n", + " Clinic\n", + " Chronic Dialysis Clinic\n", + " 34.06784\n", + " -117.21362\n", + " <NA>\n", + " <NA>\n", + " {\"paths\": [[[-117.222182797, 34.065527402], [-...\n", " \n", " \n", "\n", @@ -1569,45 +1494,66 @@ "" ], "text/plain": [ - " EndTime EndTimeUTC From_CurbApproach From_ID \\\n", - "7 2019-10-24 03:58:35 2019-10-24 10:58:35 0 2 \n", - "8 2019-10-24 03:59:31 2019-10-24 10:59:31 0 3 \n", - "9 2019-10-24 03:59:43 2019-10-24 10:59:43 0 3 \n", - "10 2019-10-24 04:00:38 2019-10-24 11:00:38 0 3 \n", - "11 2019-10-24 04:00:43 2019-10-24 11:00:43 0 3 \n", + " OBJECTID NearRank RouteName \\\n", + "7 8 4 Incident at APT - Location 21 \n", + "8 9 1 Incident at Walmart - Location 4 \n", + "9 10 2 Incident at Walmart - Location 29 \n", + "10 11 3 Incident at Walmart - Location 5 \n", + "11 12 4 Incident at Walmart - Location 26 \n", + "\n", + " StartTime EndTime \\\n", + "7 2025-09-20 03:28:58.466000080 2025-09-20 03:30:35.552000046 \n", + "8 2025-09-20 03:28:58.466000080 2025-09-20 03:30:41.094000101 \n", + "9 2025-09-20 03:28:58.466000080 2025-09-20 03:31:24.753999949 \n", + "10 2025-09-20 03:28:58.466000080 2025-09-20 03:31:41.871999979 \n", + "11 2025-09-20 03:28:58.466000080 2025-09-20 03:31:51.194000006 \n", "\n", - " From_ID_Orig From_Name NearRank OBJECTID RouteLayerItemID \\\n", - "7 F100086 Incident at APT 4 8 None \n", - "8 C100097 Incident at Walmart 1 9 None \n", - "9 C100097 Incident at Walmart 2 10 None \n", - "10 C100097 Incident at Walmart 3 11 None \n", - "11 C100097 Incident at Walmart 4 12 None \n", + " StartTimeUTC EndTimeUTC To_ID \\\n", + "7 2025-09-20 10:28:58.466000080 2025-09-20 10:30:35.552000046 187 \n", + "8 2025-09-20 10:28:58.466000080 2025-09-20 10:30:41.094000101 100 \n", + "9 2025-09-20 10:28:58.466000080 2025-09-20 10:31:24.753999949 229 \n", + "10 2025-09-20 10:28:58.466000080 2025-09-20 10:31:41.871999979 104 \n", + "11 2025-09-20 10:28:58.466000080 2025-09-20 10:31:51.194000006 216 \n", "\n", - " RouteLayerItemURL ... To_ID To_LATITUDE To_LICENSE_CATEGORY_DESC \\\n", - "7 None ... 90 34.037440 Skilled Nursing Facility \n", - "8 None ... 121 34.068010 Surgical Clinic \n", - "9 None ... 207 34.067880 Hospice \n", - "10 None ... 357 34.062850 Hospice \n", - "11 None ... 48 34.048272 General Acute Care Hospital \n", + " From_ID Total_Kilometers ... To_TOTAL_NUMBER_BEDS \\\n", + "7 2 1.091988 ... 78 \n", + "8 3 0.603005 ... \n", + "9 3 1.265384 ... \n", + "10 3 1.297613 ... \n", + "11 3 1.599973 ... \n", "\n", - " To_LICENSE_NUM To_LICENSE_TYPE_DESC To_LONGITUDE To_OSHPD_ID \\\n", - "7 240000211 Long Term Care Facility -117.202570 206361351 \n", - "8 240000513 Clinic -117.217420 306364122 \n", - "9 550002475 Home Health Agency/Hospice -117.219340 406361358 \n", - "10 550000494 Home Health Agency/Hospice -117.202640 406364342 \n", - "11 240000169 Hospital -117.221174 106364268 \n", + " To_FACILITY_STATUS_DESC To_FACILITY_STATUS_DATE \\\n", + "7 Open 1966-04-25 \n", + "8 Open 2019-05-01 \n", + "9 Open 1993-07-26 \n", + "10 Open 2019-02-09 \n", + "11 Open 2019-10-31 \n", "\n", - " To_TOTAL_NUMBER_BEDS Total_Miles Total_Minutes \n", - "7 78.0 0.679478 1.602120 \n", - "8 NaN 0.795496 2.534579 \n", - "9 NaN 0.885131 2.734999 \n", - "10 NaN 1.310982 3.658257 \n", - "11 28.0 1.235979 3.727673 \n", + " To_LICENSE_TYPE_DESC To_LICENSE_CATEGORY_DESC To_LATITUDE \\\n", + "7 Long Term Care Facility Skilled Nursing Facility 34.03744 \n", + "8 Home Health Agency/Hospice Hospice 34.06021 \n", + "9 Clinic Surgical Clinic 34.06801 \n", + "10 Home Health Agency/Hospice Home Health Agency 34.06873 \n", + "11 Clinic Chronic Dialysis Clinic 34.06784 \n", + "\n", + " To_LONGITUDE RouteLayerItemID RouteLayerItemURL \\\n", + "7 -117.20257 \n", + "8 -117.22182 \n", + "9 -117.21742 \n", + "10 -117.22612 \n", + "11 -117.21362 \n", + "\n", + " SHAPE \n", + "7 {\"paths\": [[[-117.205199972, 34.0447172080001]... \n", + "8 {\"paths\": [[[-117.222182797, 34.065527402], [-... \n", + "9 {\"paths\": [[[-117.222182797, 34.065527402], [-... \n", + "10 {\"paths\": [[[-117.222182797, 34.065527402], [-... \n", + "11 {\"paths\": [[[-117.222182797, 34.065527402], [-... \n", "\n", "[5 rows x 34 columns]" ] }, - "execution_count": 56, + "execution_count": 38, "metadata": {}, "output_type": "execute_result" } @@ -1652,11 +1598,11 @@ }, { "cell_type": "code", - "execution_count": 17, + "execution_count": 47, "metadata": {}, "outputs": [], "source": [ - "map4a.add_layer(result2)" + "map4a.content.add(result2)" ] }, { @@ -1677,14 +1623,15 @@ }, { "cell_type": "code", - "execution_count": 19, + "execution_count": 48, "metadata": {}, "outputs": [ { "name": "stderr", "output_type": "stream", "text": [ - "Network elements with avoid-restrictions are traversed in the output (restriction attribute names: \"Through Traffic Prohibited\").\n" + "Network elements with avoid-restrictions are traversed in the output (restriction attribute names: \"Through Traffic Prohibited\").\n", + "{\"cost\": 6.0}\n" ] } ], @@ -1697,10 +1644,8 @@ }, { "cell_type": "code", - "execution_count": 20, - "metadata": { - "scrolled": true - }, + "execution_count": 49, + "metadata": {}, "outputs": [ { "data": { @@ -1709,7 +1654,7 @@ " 'connecting_lines_layer': }" ] }, - "execution_count": 20, + "execution_count": 49, "metadata": {}, "output_type": "execute_result" } @@ -1729,7 +1674,7 @@ }, { "cell_type": "code", - "execution_count": 22, + "execution_count": 53, "metadata": {}, "outputs": [ { @@ -1754,111 +1699,111 @@ " \n", " \n", " RouteName\n", - " Total_Miles\n", + " Total_Kilometers\n", " Total_Minutes\n", " \n", " \n", " \n", " \n", " 0\n", - " Incident at Esri - Location 27\n", - " 0.685692\n", - " 2.162341\n", + " Incident at Esri - Location 31\n", + " 0.87555\n", + " 1.864816\n", " \n", " \n", " 1\n", - " Incident at Esri - Location 28\n", - " 0.685692\n", - " 2.162341\n", + " Incident at Esri - Location 32\n", + " 0.87555\n", + " 1.864816\n", " \n", " \n", " 2\n", - " Incident at Esri - Location 31\n", - " 0.763683\n", - " 2.665145\n", + " Incident at Esri - Location 36\n", + " 1.25017\n", + " 2.45826\n", " \n", " \n", " 3\n", - " Incident at Esri - Location 4\n", - " 1.063062\n", - " 3.180694\n", + " Incident at Esri - Location 30\n", + " 1.863537\n", + " 3.380924\n", " \n", " \n", " 4\n", - " Incident at APT - Location 5\n", - " 0.268286\n", - " 1.237879\n", + " Incident at APT - Location 10\n", + " 0.434045\n", + " 0.860211\n", " \n", " \n", " 5\n", - " Incident at APT - Location 12\n", - " 0.430200\n", - " 1.267052\n", + " Incident at APT - Location 17\n", + " 0.703422\n", + " 1.113239\n", " \n", " \n", " 6\n", - " Incident at APT - Location 16\n", - " 0.679478\n", - " 1.887898\n", + " Incident at APT - Location 23\n", + " 1.261744\n", + " 1.564755\n", " \n", " \n", " 7\n", - " Incident at APT - Location 30\n", - " 0.800335\n", - " 2.130537\n", + " Incident at APT - Location 21\n", + " 1.091988\n", + " 1.618107\n", " \n", " \n", " 8\n", - " Incident at Walmart - Location 23\n", - " 0.795496\n", - " 3.198604\n", + " Incident at Walmart - Location 4\n", + " 0.603005\n", + " 1.710463\n", " \n", " \n", " 9\n", - " Incident at Walmart - Location 26\n", - " 0.885131\n", - " 3.387160\n", + " Incident at Walmart - Location 29\n", + " 1.265384\n", + " 2.438137\n", " \n", " \n", " 10\n", - " Incident at Walmart - Location 6\n", - " 1.235979\n", - " 4.689103\n", + " Incident at Walmart - Location 5\n", + " 1.297613\n", + " 2.723433\n", " \n", " \n", " 11\n", - " Incident at Walmart - Location 31\n", - " 1.310982\n", - " 4.787276\n", + " Incident at Walmart - Location 26\n", + " 1.599973\n", + " 2.878808\n", " \n", " \n", "\n", "" ], "text/plain": [ - " RouteName Total_Miles Total_Minutes\n", - "0 Incident at Esri - Location 27 0.685692 2.162341\n", - "1 Incident at Esri - Location 28 0.685692 2.162341\n", - "2 Incident at Esri - Location 31 0.763683 2.665145\n", - "3 Incident at Esri - Location 4 1.063062 3.180694\n", - "4 Incident at APT - Location 5 0.268286 1.237879\n", - "5 Incident at APT - Location 12 0.430200 1.267052\n", - "6 Incident at APT - Location 16 0.679478 1.887898\n", - "7 Incident at APT - Location 30 0.800335 2.130537\n", - "8 Incident at Walmart - Location 23 0.795496 3.198604\n", - "9 Incident at Walmart - Location 26 0.885131 3.387160\n", - "10 Incident at Walmart - Location 6 1.235979 4.689103\n", - "11 Incident at Walmart - Location 31 1.310982 4.787276" + " RouteName Total_Kilometers Total_Minutes\n", + "0 Incident at Esri - Location 31 0.87555 1.864816\n", + "1 Incident at Esri - Location 32 0.87555 1.864816\n", + "2 Incident at Esri - Location 36 1.25017 2.45826\n", + "3 Incident at Esri - Location 30 1.863537 3.380924\n", + "4 Incident at APT - Location 10 0.434045 0.860211\n", + "5 Incident at APT - Location 17 0.703422 1.113239\n", + "6 Incident at APT - Location 23 1.261744 1.564755\n", + "7 Incident at APT - Location 21 1.091988 1.618107\n", + "8 Incident at Walmart - Location 4 0.603005 1.710463\n", + "9 Incident at Walmart - Location 29 1.265384 2.438137\n", + "10 Incident at Walmart - Location 5 1.297613 2.723433\n", + "11 Incident at Walmart - Location 26 1.599973 2.878808" ] }, - "execution_count": 22, + "execution_count": 53, "metadata": {}, "output_type": "execute_result" } ], "source": [ "df5 = result2b['connecting_lines_layer'].query().sdf\n", - "df5[['RouteName', 'Total_Miles', 'Total_Minutes']]" + "df5[['RouteName', 'Total_Kilometers', 'Total_Minutes']]" ] }, { @@ -1895,55 +1840,37 @@ }, { "cell_type": "code", - "execution_count": 29, + "execution_count": 63, "metadata": {}, "outputs": [], "source": [ - "map4.draw(facilities, symbol=hospital_symbol, attributes={\"title\":\"Hospital Facility\"})" + "map4.content.draw(facilities, symbol=hospital_symbol, attributes={\"title\":\"Hospital Facility\"})" ] }, { "cell_type": "code", - "execution_count": 30, + "execution_count": 64, "metadata": {}, "outputs": [], "source": [ - "map4.draw(incidents, symbol=traffic_accident_symbol, attributes={\"title\":\"Incident location\"})" - ] - }, - { - "cell_type": "code", - "execution_count": 36, - "metadata": {}, - "outputs": [ - { - "data": { - "text/plain": [ - "True" - ] - }, - "execution_count": 36, - "metadata": {}, - "output_type": "execute_result" - } - ], - "source": [ - "# draw the routes from each incident location in a different color\n", - "df5.spatial.plot(map4, renderer_type='u',col='From_Name')" + "map4.content.draw(incidents, symbol=traffic_accident_symbol, attributes={\"title\":\"Incident location\"})" ] }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 80, "metadata": {}, "outputs": [], "source": [ - "map4.take_screenshot(set_as_preview=True, output_in_cell=False)" + "# draw the routes from each incident location in a different color\n", + "df5.spatial.plot(map4, renderer=route_renderer)\n", + "sm_manager = map4.content.renderer(0).smart_mapping()\n", + "sm_manager.unique_values_renderer(field=\"From_Name\")" ] }, { "cell_type": "code", - "execution_count": 42, + "execution_count": 81, "metadata": { "scrolled": true }, @@ -1953,32 +1880,32 @@ "text/html": [ "
\n", " \n", "\n", "
\n", - " Closest Facility of hospitals in San Bernadino County from incidents (3) \n", + " Closest Facility of hospitals in San Bernadino County from incidents 3 \n", " \n", - "
Closest Facility of hospitals in San Bernadino County from incidentsWeb Map by portaladmin\n", - "
Last Modified: September 19, 2019\n", + "
Closest Facility of hospitals in San Bernadino County from incidents
Web Map by arcgis_python\n", + "
Last Modified: September 20, 2025\n", "
0 comments, 0 views\n", "
\n", "
\n", " " ], "text/plain": [ - "" + "" ] }, - "execution_count": 42, + "execution_count": 81, "metadata": {}, "output_type": "execute_result" } ], "source": [ - "item_properties[\"title\"] = \"Closest Facility of hospitals in San Bernadino County from incidents (3) \"\n", + "item_properties[\"title\"] = \"Closest Facility of hospitals in San Bernadino County from incidents 3 \"\n", "\n", "item = map4.save(item_properties)\n", "item" @@ -2032,7 +1959,7 @@ "name": "python", "nbconvert_exporter": "python", "pygments_lexer": "ipython3", - "version": "3.7.11" + "version": "3.12.11" }, "toc": { "base_numbering": 1, @@ -2078,5 +2005,5 @@ } }, "nbformat": 4, - "nbformat_minor": 2 + "nbformat_minor": 4 } From 0e6a65d2a5f4c10c6d3907732cecb7e181fab355 Mon Sep 17 00:00:00 2001 From: Manushi Majumdar Date: Mon, 22 Sep 2025 18:55:47 -0400 Subject: [PATCH 2/2] removed zoomlevel from maps --- .../part4_find_closest_facilities.ipynb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb b/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb index 35abd35d9f..f555120384 100644 --- a/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb +++ b/guide/11-performing-network-analyses/part4_find_closest_facilities.ipynb @@ -283,7 +283,7 @@ } ], "source": [ - "map1 = my_gis.map('Redlands, CA', zoomlevel=12)\n", + "map1 = my_gis.map('Redlands, CA')\n", "map1" ] }, @@ -687,7 +687,7 @@ } ], "source": [ - "map2 = my_gis.map('Redlands, CA', zoomlevel=12)\n", + "map2 = my_gis.map('Redlands, CA')\n", "map2" ] }, @@ -1592,7 +1592,7 @@ } ], "source": [ - "map4a = my_gis.map('Redlands, CA', zoomlevel=12)\n", + "map4a = my_gis.map('Redlands, CA')\n", "map4a" ] }, @@ -1834,7 +1834,7 @@ } ], "source": [ - "map4 = my_gis.map('Redlands, CA', zoomlevel=12)\n", + "map4 = my_gis.map('Redlands, CA')\n", "map4" ] },