Travelling Salesman with Google Maps API or any other

你。 提交于 2019-12-05 00:45:25

问题


I have a list of addresses and need to find the best route that reaches every address and goes back to the start With Google Maps API it is possible to calculate this with 8 waypoints I think but 8 isn't enough for my purposes.

Is there someone out there who offers route optimization with more than 8 waypoints? I mean there must be, right? This is a problem that many organisations need a solution to. It is no problem at all if it costs a lot of money, the calculations are very heavy so I wouldn't expect any free service. Does maybe google have a paid service for that (for SMEs)?

I'll take any ideas on how to solve this problem!

It should work from within an application, so I don't just need a webpage where you can enter the addresses and get a route back, I need something that has an API.


回答1:


Gebweb tsp solver can help you to find a route. It's free. Link: https://code.google.com/p/google-maps-tsp-solver/

The solver source code is available under the MIT license. If you are interested in knowing about updates to this code, please subscribe to this mailing list.




回答2:


Maps API for Business allows for 23 waypoints. See:

https://developers.google.com/maps/documentation/javascript/reference#DirectionsRendererOptions

Find: Array of intermediate waypoints.

You're a Business Man, so this should work.



来源:https://stackoverflow.com/questions/17308805/travelling-salesman-with-google-maps-api-or-any-other

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!