Optimal path through multiple waypoints

So for example there is start point, end point and multiple waypoints between them.
Is there a simple solution for finding shortest path through them?


No. I am not going to solve an NP complete problem for you.
Due to it being an NP complete problem, there isn’t much you can do other than to try all possible solutions (i.e requesting all possible paths) and see which one is shortest.

These scripts might be of interest: