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
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:
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
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.