<?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: RouteTracker not receiving status changes with offline map. in Swift Maps SDK Questions</title>
    <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510288#M341</link>
    <description>&lt;P&gt;I'm not getting any errors.&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2024 20:52:22 GMT</pubDate>
    <dc:creator>JacobCurrier</dc:creator>
    <dc:date>2024-07-25T20:52:22Z</dc:date>
    <item>
      <title>RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1508876#M331</link>
      <description>&lt;P&gt;Hello,&lt;BR /&gt;&lt;BR /&gt;I'm working on upgrading our existing application from esri 100.15 to 200.4. Currently I'm working on implementing a MapView that can solve a simple route, display it graphically, track the users progress, give directions, and reroute them if needed. The map and route task will be either from esri online services or from an mmpk depending on the users settings. I'm simulating my location / movement using a gpx file.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;When using the online map / routing service everything is working as desired. (except the ability to reroute which seems to be unsupported by the service. Is this an esri online account setting that can be configured?)&lt;/P&gt;&lt;P&gt;When using a map / transportation network dataset from an mmpk pretty much everything is done the same way besides loading the offline map and creating the route task using a TransportationNetworkDataSet.&lt;BR /&gt;&lt;BR /&gt;In this case however I can only solve the route and display the initial route from the RouteResult.&lt;BR /&gt;&lt;BR /&gt;After the initial solve I create the RouteTracker, use it to create a RouteTrackerLocationDataSource, set the maps locationDisplay.datasource equal to it, and start the datasource.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've verified that it's status is started however with the offline map the location is always nil and the RouteTracker trackingStatus is not getting any updates.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've tried a few different mmpks and got the same result in both.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Are there any settings that I need to change specifically for offline maps to work with the route tracker?&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Any guidance would be appreciated.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Tue, 23 Jul 2024 20:22:30 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1508876#M331</guid>
      <dc:creator>JacobCurrier</dc:creator>
      <dc:date>2024-07-23T20:22:30Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1508951#M332</link>
      <description>&lt;BLOCKQUOTE&gt;When using the online map / routing service everything is working as desired. (except the ability to reroute which seems to be unsupported by the service. Is this an esri online account setting that can be configured?)&lt;/BLOCKQUOTE&gt;&lt;P&gt;To publish a routing service, most likely it is done through the&amp;nbsp;&lt;EM&gt;ArcGIS Server Manager&lt;/EM&gt;. There is a section that discusses the auto-rerouting configuration on the server in &lt;A href="https://enterprise.arcgis.com/en/server/latest/publish-services/windows/edit-routing-services-properties.htm#ESRI_SECTION1_C30D73392D964D51A8B606128A8A6E8F" target="_self"&gt;this documentation&lt;/A&gt;.&amp;nbsp;&lt;SPAN&gt;The availability of the rerouting option is determined by the service or local network dataset. If the service does not support rerouting or does not advertise the parameter, the property value will be false. For local datasets, it is always true.&lt;/SPAN&gt;&lt;/P&gt;&lt;P&gt;&lt;SPAN&gt;Update: another thing pointed out by our routing team - the world routing service doesn't allow rerouting, because otherwise our data providers will charge us for the extra service. So the most widely used world routing service is kept to the basics.&lt;/SPAN&gt;&lt;/P&gt;&lt;BLOCKQUOTE&gt;&lt;HR /&gt;After the initial solve I create the RouteTracker, use it to create a RouteTrackerLocationDataSource, set the maps locationDisplay.datasource equal to it, and start the datasource.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I've verified that it's status is started however with the offline map the location is always nil and the RouteTracker trackingStatus is not getting any updates.&amp;nbsp;&lt;BR /&gt;&lt;HR /&gt;&lt;/BLOCKQUOTE&gt;&lt;P&gt;I know you might have already checked but just in case… there is a &lt;A href="https://github.com/Esri/arcgis-maps-sdk-swift-samples/blob/main/Shared/Samples/Navigate%20route%20with%20rerouting/NavigateRouteWithReroutingView.swift" target="_self"&gt;sample&lt;/A&gt; for rerouting. A few things that come to my mind are:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Did you use the&amp;nbsp;&lt;EM&gt;RouteTrackerLocationDataSource&lt;/EM&gt; API?&lt;/LI&gt;&lt;LI&gt;&lt;span class="lia-unicode-emoji" title=":white_heavy_check_mark:"&gt;✅&lt;/span&gt;Did you start the location data source? Can you ensure your simulated data source is emitting locations correctly?&lt;/LI&gt;&lt;LI&gt;Did you access the updates of&amp;nbsp;&lt;EM&gt;routeTracker.$trackingStatus&lt;/EM&gt; using a for-await-in syntax as it is an asynchronous stream?&lt;/LI&gt;&lt;LI&gt;Did you set the stops for the navigation correctly?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;There are many pieces for the navigation workflow so it is hard to tell which part went wrong. If possible, you can dm me a zip archive of a demo project with the offline network data you used for routing.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 20:47:39 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1508951#M332</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2024-07-24T20:47:39Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1509234#M333</link>
      <description>&lt;P&gt;Thank you for the response.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;Everything is working when I create a route task with the esri online routing service like this:&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;let routeTask = RouteTask(url: URL(string: "https://route-api.arcgis.com/arcgis/rest/services/World/Route/NAServer/Route_World")!)&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;BR /&gt;I'm getting the $trackingStatus updates and the route is being calculated from the start and end stops.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;My issue is when I create a routeTask with a transportationNetworkDataset such as:&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;if let transportationNetwork = map.transportationNetworks.first {
     routeTask = RouteTask(dataset: transportationNetwork)
}&lt;/LI-CODE&gt;&lt;P&gt;&lt;BR /&gt;In this scenario the RouteResult is correct and returns the correct route start to finish. However the locationDisplay using the&amp;nbsp;RouteTrackerLocationDataSource isn't getting location updates and the $trackingStatus isn't getting status updates.&amp;nbsp;&lt;BR /&gt;&lt;BR /&gt;I'll try to put together a small demo today and send it over.&lt;/P&gt;</description>
      <pubDate>Wed, 24 Jul 2024 13:21:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1509234#M333</guid>
      <dc:creator>JacobCurrier</dc:creator>
      <dc:date>2024-07-24T13:21:13Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1509602#M335</link>
      <description>&lt;P&gt;Curious to see the repro case. Just want to double check a few things:&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Did you use Lite license for the local network dataset?&lt;/LI&gt;&lt;LI&gt;Was there any error being thrown during the route tracker construction and starting process?&lt;/LI&gt;&lt;/UL&gt;</description>
      <pubDate>Wed, 24 Jul 2024 20:42:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1509602#M335</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2024-07-24T20:42:58Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510033#M338</link>
      <description>&lt;UL&gt;&lt;LI&gt;Did you use Lite license for the local network dataset?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;Yes, I believe so&lt;/P&gt;&lt;UL&gt;&lt;LI&gt;Was there any error being thrown during the route tracker construction and starting process?&lt;/LI&gt;&lt;/UL&gt;&lt;P&gt;No errors through the construction process, and the datasource status is showing it's been started.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 14:04:40 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510033#M338</guid>
      <dc:creator>JacobCurrier</dc:creator>
      <dc:date>2024-07-25T14:04:40Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510271#M340</link>
      <description>&lt;P&gt;Lite license might be a problem… Can you check if this line in your code throw any error?&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;LI-CODE lang="swift"&gt;try await locationDisplay.dataSource.start()&lt;/LI-CODE&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 19:58:24 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510271#M340</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2024-07-25T19:58:24Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510288#M341</link>
      <description>&lt;P&gt;I'm not getting any errors.&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2024 20:52:22 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1510288#M341</guid>
      <dc:creator>JacobCurrier</dc:creator>
      <dc:date>2024-07-25T20:52:22Z</dc:date>
    </item>
    <item>
      <title>Re: RouteTracker not receiving status changes with offline map.</title>
      <link>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1511779#M344</link>
      <description>&lt;P&gt;A quick update: I have asked our network analysis team about why there isn't an error - it should be an error thrown somewhere, but I can't manage to find it.&lt;/P&gt;&lt;P&gt;Per my test, using local network dataset for route tracking requires higher than Lite license - Basic, Standard, Advanced.&lt;/P&gt;&lt;P&gt;If you want to see it work, you can also comment out the line that set the license in the main function's initializer, and the app falls back to developer mode, which allows you to use all the functionalities while showing a watermark.&lt;/P&gt;</description>
      <pubDate>Mon, 29 Jul 2024 17:29:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/swift-maps-sdk-questions/routetracker-not-receiving-status-changes-with/m-p/1511779#M344</guid>
      <dc:creator>Ting</dc:creator>
      <dc:date>2024-07-29T17:29:31Z</dc:date>
    </item>
  </channel>
</rss>

