<?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: Create a local transportation network dataset for a RouteTask in ArcGIS Runtime SDK for Android Questions</title>
    <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244933#M5944</link>
    <description>&lt;P&gt;Hello, and happy new year!&lt;/P&gt;&lt;P&gt;You need to package your network dataset in a Mobile Map Package containing the map with the network dataset. With ArcMap you used to be able to export a network dataset for Runtime SDK use, but with Pro we moved to a map package approach since more often than not you'll want to use the network dataset with a map or maps (but don't worry, you don't &lt;EM&gt;have&lt;/EM&gt; to use/display the map if your workflow doesn't require it - in that case the MMPK and Map are just delivery mechanisms for the network dataset).&lt;/P&gt;&lt;P&gt;Load the &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/MobileMapPackage.html" target="_self"&gt;MobileMapPackage&lt;/A&gt;, use the Maps property to read and load the &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/ArcGISMap.html" target="_self"&gt;ArcGISMap&lt;/A&gt;, and then read the TransportationNetworkDataset(s) &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/GeoModel.html#getTransportationNetworks()" target="_self"&gt;from the map&lt;/A&gt;. You can then &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/tasks/networkanalysis/RouteTask.html#%3Cinit%3E(android.content.Context,com.esri.arcgisruntime.data.TransportationNetworkDataset)" target="_self"&gt;create a RouteTask&lt;/A&gt; from each &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/data/TransportationNetworkDataset.html" target="_self"&gt;TransportationNetworkDataset&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
    <pubDate>Tue, 03 Jan 2023 16:23:28 GMT</pubDate>
    <dc:creator>Nicholas-Furness</dc:creator>
    <dc:date>2023-01-03T16:23:28Z</dc:date>
    <item>
      <title>Create a local transportation network dataset for a RouteTask</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244673#M5943</link>
      <description>&lt;P&gt;Greetings,&lt;/P&gt;&lt;P&gt;I currently have an ArcGIS Pro project and created a Network Dataset with the Polyline features.&lt;/P&gt;&lt;P&gt;I already can generate routes in ArcGIS Pro and use other Network Analyst tools.&lt;/P&gt;&lt;P&gt;I'm currently developing an ArcGIS Android app using the SDK for Android (Java) and need a .geodatabase and .tn files to use RouteTask offline.&lt;/P&gt;&lt;P&gt;I have no idea how to convert my Network Dataset in ArcGIS Pro to those needed files, please guide me on how to do it.&lt;/P&gt;&lt;P&gt;Cheers (and have a wonderful 2023!)&lt;/P&gt;</description>
      <pubDate>Fri, 30 Dec 2022 23:21:03 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244673#M5943</guid>
      <dc:creator>maglourenco1</dc:creator>
      <dc:date>2022-12-30T23:21:03Z</dc:date>
    </item>
    <item>
      <title>Re: Create a local transportation network dataset for a RouteTask</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244933#M5944</link>
      <description>&lt;P&gt;Hello, and happy new year!&lt;/P&gt;&lt;P&gt;You need to package your network dataset in a Mobile Map Package containing the map with the network dataset. With ArcMap you used to be able to export a network dataset for Runtime SDK use, but with Pro we moved to a map package approach since more often than not you'll want to use the network dataset with a map or maps (but don't worry, you don't &lt;EM&gt;have&lt;/EM&gt; to use/display the map if your workflow doesn't require it - in that case the MMPK and Map are just delivery mechanisms for the network dataset).&lt;/P&gt;&lt;P&gt;Load the &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/MobileMapPackage.html" target="_self"&gt;MobileMapPackage&lt;/A&gt;, use the Maps property to read and load the &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/ArcGISMap.html" target="_self"&gt;ArcGISMap&lt;/A&gt;, and then read the TransportationNetworkDataset(s) &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/mapping/GeoModel.html#getTransportationNetworks()" target="_self"&gt;from the map&lt;/A&gt;. You can then &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/tasks/networkanalysis/RouteTask.html#%3Cinit%3E(android.content.Context,com.esri.arcgisruntime.data.TransportationNetworkDataset)" target="_self"&gt;create a RouteTask&lt;/A&gt; from each &lt;A href="https://developers.arcgis.com/android/api-reference/reference/com/esri/arcgisruntime/data/TransportationNetworkDataset.html" target="_self"&gt;TransportationNetworkDataset&lt;/A&gt;.&lt;/P&gt;&lt;P&gt;Hope that helps!&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 16:23:28 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244933#M5944</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2023-01-03T16:23:28Z</dc:date>
    </item>
    <item>
      <title>Re: Create a local transportation network dataset for a RouteTask</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244960#M5945</link>
      <description>&lt;P&gt;Hi Nicholas, thank you &lt;STRONG&gt;so&lt;/STRONG&gt; much for your help!&lt;/P&gt;&lt;P&gt;I actually asked something like this a while ago still in the ArcMap days. At that time, you needed a .geodatabase and .tn file. I assume that with the Mobile Map Package it is already included correct?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 17:16:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244960#M5945</guid>
      <dc:creator>maglourenco1</dc:creator>
      <dc:date>2023-01-03T17:16:27Z</dc:date>
    </item>
    <item>
      <title>Re: Create a local transportation network dataset for a RouteTask</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244967#M5946</link>
      <description>&lt;P&gt;Hi,&lt;/P&gt;&lt;P&gt;The Mobile Map Package is best considered as a black box. You don't need to worry about exactly how the network dataset is packaged up in there (though I expect that some form of geodatabase and .tn file is in there somewhere &lt;span class="lia-unicode-emoji" title=":grinning_face:"&gt;😀&lt;/span&gt;). The key part really is knowing how to load it into a RouteTask.&lt;/P&gt;&lt;P&gt;But in short, yes, if the Pro Map has a transportation network, then it'll be included in the Mobile Map Package as part of the support data for the packaged map. You can find a little more information here:&amp;nbsp;&lt;A href="https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-mobile-map-package.htm" target="_blank" rel="noopener"&gt;https://pro.arcgis.com/en/pro-app/latest/tool-reference/data-management/create-mobile-map-package.htm&lt;/A&gt;&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 17:24:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1244967#M5946</guid>
      <dc:creator>Nicholas-Furness</dc:creator>
      <dc:date>2023-01-03T17:24:39Z</dc:date>
    </item>
    <item>
      <title>Re: Create a local transportation network dataset for a RouteTask</title>
      <link>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1245061#M5947</link>
      <description>&lt;P&gt;Thank you very much for the thoroughly explanation!&lt;/P&gt;&lt;P&gt;Indeed that seems like a cleaner solution comparing to loading a .geodatabase and a .tn file in the device, will be testing that solution!&lt;/P&gt;&lt;P&gt;Cheers&lt;/P&gt;</description>
      <pubDate>Tue, 03 Jan 2023 18:49:14 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcgis-runtime-sdk-for-android-questions/create-a-local-transportation-network-dataset-for/m-p/1245061#M5947</guid>
      <dc:creator>maglourenco1</dc:creator>
      <dc:date>2023-01-03T18:49:14Z</dc:date>
    </item>
  </channel>
</rss>

