on-internet
← Community

Distance Providers for VRP with Timefold/Optaplanner

Stack Overflow ·

In any VRP solution that involves actual driving distances, we need to use a service to get the distance between any two points, be it Google maps or Nominatim etc. What is the best practice for calculating these distances ahead of time. Should we use a multi-threaded app to get a full distance matrix between all points before we ask the Solver to work on the problem. In all the examples, the HaversineDistanceCalculator is used which is an approximation and is calculated during constraint validation , and because it doenst need to call an API, itd be fast etc, but if we were to use a service,

Comments

Sign in or sign up to comment and upvote.

No comments yet.