none
RestToolkit Travelling Salesman Freezes RRS feed

  • Question

  • I am using the BING RestToolkit to calculate the best route for multiple destinations using the travelling salesman example. The app works fine with up to 4 destinations but if I put more in the app freezes and nothing is returned. (Response r = await routeRequest.Execute())

    Any ideas?

    Monday, August 5, 2019 8:20 AM

Answers

  • All working now. All postcodes are correct. I have changed the code to only allow up to the limit (25 way points) and all appears to be working fine.

    Thanks you for your reply.

    • Marked as answer by bebifusion Saturday, August 10, 2019 11:36 AM
    Saturday, August 10, 2019 11:35 AM

All replies

  • Hi bebifusion,

    is there something odd about the 5th destination you are adding?  

    Sincerely,

    IoTGirl

    Tuesday, August 6, 2019 4:49 PM
    Owner
  • All working now. All postcodes are correct. I have changed the code to only allow up to the limit (25 way points) and all appears to be working fine.

    Thanks you for your reply.

    • Marked as answer by bebifusion Saturday, August 10, 2019 11:36 AM
    Saturday, August 10, 2019 11:35 AM
  • Ah so the call was failing because you exceeded the number of waypoints.  Good catch!
    Saturday, August 10, 2019 6:35 PM
    Owner