I'm building a routing service in Java with routing tools like graphhopper for generating routes between points, and jsprit for vehicle routing problems embedded in app through Maven.
In jsprit, a cost matrix can be added which marks the time and distance between 2 points in the matrix. But that would mean that for each edge in the graph, I would have to make a request to graphhopper to get the info.
My question is, if that's the correct way to handle this problem? I have searched over the API and cannot find an option to generate matrix. What is the best practice for this scenario.
Thanks in advance