What is a practical solution to the Travelling Salesman prblem, using Google Maps?

后端 未结 4 1717
抹茶落季
抹茶落季 2021-01-02 21:15

What is a practical solution to the Travelling Salesman problem, using Google Maps / geolocation / route finding?

I don\'t need the best solution, within 5% would be

4条回答
  •  北海茫月
    2021-01-02 21:47

    you can use long lat to estimated roughly how far apart the locations are, then make a few lookups for those that are nearby each other.

    a simpler alternative is to separate your map into 3 x 3 sections. Only look up routes for locations in adjacent sections.

    these techniques aren't 100% accurate though.

    And even if you look up all the paths, you should end up with no more than 190 lookups.

提交回复
热议问题