Fast calculation of xDima-createDistanceMatrix even though HPRN is georestricted for another country
Posted: Thu Jul 20, 2023 1:01 pm
Hi,
We have an unexpected behavior from our PTV server which we cannot explain and we need a bit of help in finding an answer
In short, this is what`s happening:
I select 50 orders from the Netherlands and I intentionally choose a HPRN (for the distance matrix creation) that was generated with a geo-restriction for Spain.
So in this case I`m expecting that the xDima-createDistanceMatrix API call will take the same amount of time as if I was calling it without HPRN (because it doesn`t have the necessary data to make the calculations fast), but instead I do get a fast response.
These are the details of our test case:
1) First we do a xDima-createDistanceMatrix API call without a HPRN defined so we can measure how much time does it takes, and the result is 30 seconds for 50 orders (which is expected for a HPRN-less API call).
2) Then we use the same 50 orders (all from the Netherlands) and we do a new xDima-createDistanceMatrix API call with a HPRN which was created with a geo-restriction for Spain. So here the result gets back in 652 milliseconds which I would have expected if the HPRN was created with a geo-restriction for the Netherlands.
So the question is how does the PTV server calculates the result for the Netherlands orders so fast?
Maybe there is some default HPRN file for these case, or we`re not noticing some detail?
I`ve attached the HPRN creation request,DIMA creation request/response, xTour request/response files, and some screenshots as well so you can take a look at the details.
Looking forward to your reply,
Marko Arsovski
We have an unexpected behavior from our PTV server which we cannot explain and we need a bit of help in finding an answer
In short, this is what`s happening:
I select 50 orders from the Netherlands and I intentionally choose a HPRN (for the distance matrix creation) that was generated with a geo-restriction for Spain.
So in this case I`m expecting that the xDima-createDistanceMatrix API call will take the same amount of time as if I was calling it without HPRN (because it doesn`t have the necessary data to make the calculations fast), but instead I do get a fast response.
These are the details of our test case:
1) First we do a xDima-createDistanceMatrix API call without a HPRN defined so we can measure how much time does it takes, and the result is 30 seconds for 50 orders (which is expected for a HPRN-less API call).
2) Then we use the same 50 orders (all from the Netherlands) and we do a new xDima-createDistanceMatrix API call with a HPRN which was created with a geo-restriction for Spain. So here the result gets back in 652 milliseconds which I would have expected if the HPRN was created with a geo-restriction for the Netherlands.
So the question is how does the PTV server calculates the result for the Netherlands orders so fast?
Maybe there is some default HPRN file for these case, or we`re not noticing some detail?
I`ve attached the HPRN creation request,DIMA creation request/response, xTour request/response files, and some screenshots as well so you can take a look at the details.
Looking forward to your reply,
Marko Arsovski