0

I want to update the route as the device moves just like it happens in navigation. But i dont want to use the RouteQuery and Map.AddRoute every time the position changes as given below.

    private void DrawRoute(GeoCoordinate newPosition)//
{
   RouteQuery query = new RouteQuery()
   {
      TravelMode = TravelMode.Driving,
      Waypoints = new List<GeoCoordinate>() { MainMap.Center, newPosition }
   };
   query.QueryCompleted += RouteQueryCompleted;
   query.QueryAsync();
   MainMap.Center = newPosition;
   lastCoordinate = newPosition;
}

Is there a different way?

rbrundritt
  • 16,570
  • 2
  • 21
  • 46
megamind
  • 424
  • 1
  • 4
  • 19

0 Answers0