Steps to reproduce:
- Create route with more than 15-20 points. (overall length of the route would be more than 2500km)
- Send POST request to the Routing API with custom_model:
ch.disable: true,
custom_model: {
priority: [
{
if: "country == CHE",
multiply_by: "0",
},
],
}
Whenever there is more than 700km between two points or we are setting two points that are separated by restricted country I will get:
- Status code 500. Message: “timeout”
- Status code 400. Message: “Connection between locations not found”
As far as I read, the problem is that ch.disable: true disables the speed mode (Contraction Hierarchy) and calculating points that are more than 500-700km apart is too complex for other algorithm.
Are there ways to use Contraction Hierarchy with restricted countries/areas?