Connect Graphhopper and Jsprit


So I have graphhopper installed and works well. I need to order destination by arrival time (VRP) so I heard about jsprit. I installed it and tried it works perfect but I have couple quesitons :

  • How can I connect jsprit and Graphhopper ? For exemple I have 4 destinations, I pass them to Graphhopper routing api and retrieve distance. But how can I pass them to the jsprit and then render them on a map ?
  • I try to understand how it works : (1)Request the routing api of graphhopper, (2) pass the arrival for each point to jsprit, (3) take the response from jsprit and displays it in a map ?

Sorry for misunderstanding but can’t see how I should tackle the problem and make them works together.

1 Like