<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Visualizing closest facility results in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-closest-facility-results/m-p/64391#M633</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am working on a project where I want to find the one closest facility (fire stations in this case) to each incident. I was able to run/solve this without a problem using ArcMap 10.7's network analyst extension, but I am wondering how I could save the closest facility ID as an attribute to the Incidents' attribute table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Routes object created by the network analyst extension has the incident ID and facility ID saved as attributes in its attribute table. I exported the Routes and Incidents, added them to the map, and joined them based on attribute. I then went into symbology for Incidents, went to categories, unique values, and gave each point an unique colour based on the facility ID. I expected points of the same colour to cluster around their closest facility, but they were all distributed randomly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Results of closest facility analysis. It seems that incidents were assigned random facilities as their closest facility rather than what was actually closest in the road network." class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/484255_random.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Note, black outlines are city districts. I turned off the street network so the incident points will be easier to see. If this matters, there are 10 facilities and 36,185 incidents.&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong. Anyone have any ideas? The network dataset I'm using seemed to work fine with no issues when I calculated service areas for these facilities. My best guess is that the incidents ID in the Routes file doesn't match the ObjectID of the Incidents file (ie incidentID # 1000 in Routes isn't the same incident as ObjectID # 1000 in Incidents for some reason).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My work around for what I want to do is create non-overlapping service areas for these facilities that are large enough to cover the entire study area, then create a spatial join on the service area polygon with the original fire incidents shapefile. This works, but I'm wondering why solving closest facility seemingly returns random results.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Fri, 06 Mar 2020 17:14:45 GMT</pubDate>
    <dc:creator>RemmyZelaya</dc:creator>
    <dc:date>2020-03-06T17:14:45Z</dc:date>
    <item>
      <title>Visualizing closest facility results</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-closest-facility-results/m-p/64391#M633</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Hello, I am working on a project where I want to find the one closest facility (fire stations in this case) to each incident. I was able to run/solve this without a problem using ArcMap 10.7's network analyst extension, but I am wondering how I could save the closest facility ID as an attribute to the Incidents' attribute table.&amp;nbsp;&lt;/P&gt;&lt;P&gt;The Routes object created by the network analyst extension has the incident ID and facility ID saved as attributes in its attribute table. I exported the Routes and Incidents, added them to the map, and joined them based on attribute. I then went into symbology for Incidents, went to categories, unique values, and gave each point an unique colour based on the facility ID. I expected points of the same colour to cluster around their closest facility, but they were all distributed randomly.&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="Results of closest facility analysis. It seems that incidents were assigned random facilities as their closest facility rather than what was actually closest in the road network." class="jive-emoji image-1 jive-image j-img-original" src="https://community.esri.com/legacyfs/online/484255_random.PNG" /&gt;&lt;/P&gt;&lt;P&gt;Note, black outlines are city districts. I turned off the street network so the incident points will be easier to see. If this matters, there are 10 facilities and 36,185 incidents.&lt;/P&gt;&lt;P&gt;I'm not sure what I'm doing wrong. Anyone have any ideas? The network dataset I'm using seemed to work fine with no issues when I calculated service areas for these facilities. My best guess is that the incidents ID in the Routes file doesn't match the ObjectID of the Incidents file (ie incidentID # 1000 in Routes isn't the same incident as ObjectID # 1000 in Incidents for some reason).&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;My work around for what I want to do is create non-overlapping service areas for these facilities that are large enough to cover the entire study area, then create a spatial join on the service area polygon with the original fire incidents shapefile. This works, but I'm wondering why solving closest facility seemingly returns random results.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Mar 2020 17:14:45 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-closest-facility-results/m-p/64391#M633</guid>
      <dc:creator>RemmyZelaya</dc:creator>
      <dc:date>2020-03-06T17:14:45Z</dc:date>
    </item>
  </channel>
</rss>

