I wanted to do the same, I used GeoQuery, passing in all waypoints. The request generated a route, which I then displayed in the user interface.
var query = new RouteQuery(); query.Waypoints = new[] { new GeoCoordinate(40.7840553533410,-73.9764425910787), new GeoCoordinate(40.7833068308611,-73.9745997113487), new GeoCoordinate(40.7826229881351,-73.9730985576614), new GeoCoordinate(40.7821147220884,-73.9719513345183), new GeoCoordinate(40.7809503161196,-73.9724639235822), new GeoCoordinate(40.7803311395532,-73.9721954245488), new GeoCoordinate(40.7795640919224,-73.9729398991417), }; query.TravelMode = TravelMode.Walking; var result = await query.GetRouteAsync(); var mapRoute = new MapRoute(result); mapRoute.Color = Colors.Magenta; mainMap.AddRoute(mapRoute);
mainMap is a Map control in my user interface. The request creates a route following the accessible path (since I designated it as a foot path, he used foot paths in the central park).
source share