In my application I have a function that allows you to create multiple stops for one order. I want to get the distance from the first to the second, then from the second to the third and so on. I would need a function that calculates how many stops there are total and then can repeat with the second option being the first for the next run if that makes sense.
All of the distances then need to be added up to get the full mileage that then can be referenced against my customers preferred rate per mile. that calculation is easy: miles x rate = total.
I am open to using Java within my site, but if you have another idea of how I can accomplish this it would be greatly appreciated.
I currently have maps extended installed but I am a little confused on how it works. I know that I already includes a distance and duration module but I not sure how to make the origin also be the destination.