I need to be able to determine if the barriers which were passed in through RouteParameters were utilized. Is there a simple way to return this information, or is it not tracked by RouteTask?
Hi Clay,
RouteTask.SolveRouteAsync() returns the Task<RouteResult>
If you have a point barrier, you need to set RouteParams.ReturnPointBarriers to true to get the barrier information from the RouteResult.
RouteParams.ReturnPointBarriers = true; // PointBarriersvar routeResult = await RouteTask.SolveRouteAsync(RouteParameters)
Hope that helps.
Nagma
サインインしたメンバーは投稿、更新のフォローなどができます。初めてですか?無料アカウントを登録してください。
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.