<?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 Re:  Visualizing route layer on ArcPy Jupyter Notebook (ArcGIS) does not work! in ArcGIS Network Analyst Questions</title>
    <link>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516863#M5059</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems you haven't drawn the route on the map yet. It happens in the next step [20] of the Tutorial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 09 Dec 2019 15:10:10 GMT</pubDate>
    <dc:creator>HåkonDreyer</dc:creator>
    <dc:date>2019-12-09T15:10:10Z</dc:date>
    <item>
      <title>Visualizing route layer on ArcPy Jupyter Notebook (ArcGIS) does not work!</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516862#M5058</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;I tried to visualize the route between two points using ArcPy in a Jupyter notebook. The network module is activated in my Esri account. Even though it visualizes the map I can't see the route on that as the&amp;nbsp;&lt;A href="https://developers.arcgis.com/python/guide/performing-route-analyses/"&gt;Tutorial &lt;/A&gt; shows.&lt;/P&gt;&lt;P&gt;Here is the code I used. I guess the problem with visualization. However I can see the following message on the console.&amp;nbsp;&lt;STRONG&gt;I can see the route Results but the problem is with displaying that. Also I can render the maps without routing layers.&amp;nbsp;&lt;/STRONG&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;&amp;gt; [esri.views.LayerViewFactory] Failed to create view for layer 'Terrain3D, id:worldElevation' of type 'elevation'&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;IMG alt="" class="jive-emoji image-1 jive-image j-img-original" src="https://i.stack.imgur.com/61u0P.png" /&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;(I tried with both &lt;STRONG&gt;Windows and Linux, Esiri Notebook&lt;/STRONG&gt; environments and the result is still the same )&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;BLOCKQUOTE class="jive_macro_quote jive-quote jive_text_macro"&gt;&lt;P&gt;from copy import deepcopy&lt;BR /&gt; from datetime import datetime&lt;BR /&gt; from IPython.display import HTML&lt;BR /&gt; import json&lt;BR /&gt; import pandas as pd&lt;BR /&gt; from arcgis.gis import GIS&lt;BR /&gt; import arcgis.network as network&lt;BR /&gt; import arcgis.geocoding as geocoding&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;user_name = 'user'&lt;BR /&gt; password = 'pw'&lt;BR /&gt; my_gis = GIS('https://www.arcgis.com', user_name, password)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;route_service_url = my_gis.properties.helperServices.route.url&lt;BR /&gt; route_service = network.RouteLayer(route_service_url, gis=my_gis)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;stops = '''-3.203062,55.906437; -3.190080,55.935570'''&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;route_layer = network.RouteLayer(route_service_url, gis=my_gis)&lt;BR /&gt; result = route_layer.solve(stops=stops, &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;directions_language='en-US', &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return_routes=True,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return_stops=True, return_directions=False,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return_barriers=False, &lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return_polygon_barriers=False,&lt;BR /&gt; &amp;nbsp;&amp;nbsp;&amp;nbsp;return_polyline_barriers=False)&lt;/P&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;my_map = my_gis.map('Braidburn Valley', zoomlevel=13)&lt;BR /&gt; my_map&lt;/P&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN style="background-color: #f6f6f6;"&gt;Thanks.&amp;nbsp;&lt;/SPAN&gt;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sun, 08 Dec 2019 21:05:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516862#M5058</guid>
      <dc:creator>d4001628urhen</dc:creator>
      <dc:date>2019-12-08T21:05:22Z</dc:date>
    </item>
    <item>
      <title>Re:  Visualizing route layer on ArcPy Jupyter Notebook (ArcGIS) does not work!</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516863#M5059</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems you haven't drawn the route on the map yet. It happens in the next step [20] of the Tutorial.&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 09 Dec 2019 15:10:10 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516863#M5059</guid>
      <dc:creator>HåkonDreyer</dc:creator>
      <dc:date>2019-12-09T15:10:10Z</dc:date>
    </item>
    <item>
      <title>Re:  Visualizing route layer on ArcPy Jupyter Notebook (ArcGIS) does not work!</title>
      <link>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516864#M5060</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;P&gt;Seems that was the issue. Thanks for pointing that out. Also could you pls provide some insights &lt;A _jive_internal="true" href="https://community.esri.com/message/897315-how-to-get-the-road-segment-ids-way-ids-from-the-route-result"&gt;here&lt;/A&gt;? That would be really helpful. Thanks.&amp;nbsp;&lt;/P&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 13 Dec 2019 10:31:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-network-analyst-questions/visualizing-route-layer-on-arcpy-jupyter-notebook/m-p/516864#M5060</guid>
      <dc:creator>d4001628urhen</dc:creator>
      <dc:date>2019-12-13T10:31:14Z</dc:date>
    </item>
  </channel>
</rss>

