Two dimensional mapping with jsprit

Can jsprit work with two dimensional mapping ?

Do you mean without taking into account elevation?

image
Distance matrix only needs the distance from A to B without the distance from B to A. And I think it necessary with real map

Using real world I implement all ways. A-B, A-C, B-A B-C, C-A, C-B. 1 way streets can impact relations.
I posted my method using multiple threads to reduce generation times for large data sets and it could be improved more (I have optimized it as much as it should be so I can test with more reasonable generation times)
Simple nested loops gets all relative distances from graphhopper.

1 Like

This means that if I use the above matrix and assign both A-> B and B-> A values, jsprit will run better, run different with default ?

Can you give me your method link?

This means that if I use the above matrix and assign both A-> B and B-> A values, jsprit will run better, run different with default ?

It will provide you with different possible solutions. Keep in mind that the above example is very simple and is only used to show setup of relations for the matrix.

Can you give me your method link?

Give the following a read and see how you can implement it into your own project.

1 Like

Thanks bro