| Forum | GitHub | Maps | Blog

Jsprit alogorithms to maps?


Hello, recently interested in jsprit library and want to know how can i use the algorithms on live maps? Can jsprit algorithms work on Google Maps? or Do i have to create or use some different APIs to execute jsprit algorithm on maps?


You can easily display any results on any map you like also e.g. on OpenStreetMap using leaflet or openlayers.

But to fetch the results via JavaScript you need a web API for jsprit and to display routes you’ll need a routing engine, which is both not part of jsprit (hint: find a solution for both problems on our website)


We’re using a slightly old version of jsprit (to be updated soon), but ODL Studio is an open source desktop based system using jsprit and graphhopper, which has mapping and various other reporting tools built in. See There’s a couple of videos demonstrating it on our youtube channel

We use OpenStreetMap map tiles for the background map.