none
Is it possible to ignore wrong address location in way points RRS feed

  • Question

  • Hi,

    In .Net , i am getting travel distance from one location to other by Lat & Lng values. I am creating way points and in one way points there can be up to 23 address locations.

    Everything is working fine but sometimes i get error message 'No route was found for the waypoints provided.' There are actually 23 address locations in that way point and one of location is not valid. Is there anyway to ignore the invalid locations and get the route distance for the rest?

    Here is the code example;

     waypoints(i) = New Waypoint()
    waypoints(i).Location = New BingRoutingService.Location()
    waypoints(i).Location.Latitude = _list(indx).Lat
    waypoints(i).Location.Longitude = _list(indx).Lng
    indx = indx + 1
    
    request.Waypoints = waypoints
    Dim client As New RouteServiceClient(("BasicHttpBinding_IRouteService"))
    Dim routeResponse As RouteResponse = client.CalculateRoute(request)



    • Edited by MUAR Sunday, February 1, 2015 7:28 PM
    Sunday, February 1, 2015 7:22 PM

Answers