Select to view content in your preferred language

How we Use Route Tracker() that the route came from CLosesFacilityResult?

400
1
02-01-2022 03:06 PM
FreztoSinurat
New Contributor

I am still confusing about this, how we implemented Route Tracker with the route from ClosesFacilityResult? in Route Tracker need route from RouteResult but i get the route from closes facility result. is there any solution? or i have to create Route Result beside the closes facility

i just want to make, nearest facility and get navigation to there

Arcgis RUntime sdk for android, using kotlin Code

Thanks

0 Kudos
1 Reply
FrankK
by
Occasional Contributor

Currently the RouteTracker only supports a Route Result.  A closest facilities solve has some different input parameters and the output is different so it can be tricky to know how to use the result for tracking, especially if re-routing was invoked while tracking

A couple potential work around, depending upon your initial CF solve, are:

  1. call a CF solve to determine the closest facility then use a Route solve with the closest pair as stops (and any other similar parameters) to create a Route Result

  2. call a Route solve multiple times with the incident as a stop and then each facility as the other stop then compare each to get the least costly and use that Route Result

Hope this helps.

0 Kudos