When optimizing routes, I needed to create a cost matrix.
After searching the forum, I found several solutions. Which one is more preferable in view of the accuracy and speed of calculations?
- Using GreatCircleDistanceCalculator (Haversine)
- Using another library or implementing custom solution (for example - Vincenty instead Haversine)
- Getting distance & time from graphhopper for every pair of coordinates.
-
forum thread
Or are there other preferred ways?
Thanks in advance for your help!