Route Optimization & Google Maps asp.net mvc

Viewed 161

I have multiple locations with lat ,long, Its not ordered so I need to order it as a route planer like image I have attached. Is there is any way to pass my all lat and long and get return with ordered index. I'm using ASP.Net MVC C#

1 Answers

Route optimization is a huge topic. There are some services you can use with APIs or you can implement your own.

To be able to implement your own, you need route data between those locations. Route data includes distances and maybe durations if you want to consider traffic as well. Also you need an algorithm to decide ordering.

If you don't need custom deciding factors about ordering, I recommend using an API for it.

Related