Hi there,
Custom model was a great feature to control the route. I am currently using it as a No-Go zone, so my model is something like:
"speed": [
{
"if": "in_custom1",
"multiply_by": "0.0"
},
{
"if": "in_custom1",
"limit_to": "0.0"
}
],
"priority": [
{
"if": "in_custom1",
"multiply_by": "0.0"
}
],
areas...
In a example where we want a route from origin to a destination, in which one of them is inside a No-Go area and the other not, we would expect to get a NO connection between them. And indeed sometimes I get a response: “Connection between locations not found”, but sometimes a connection is found, just like the example below. It depends only in the origin and destination locations, changing just a bit it’s lat or long may change from existing or not a connection/route.
Of course, there is a dashed segment which is not accounted for in the metrics (distance and time).
example not connected:
example not connected
Could not post it… but play around with points and you may build other weird examples, like one with both points near enough each other, both inside the No-Go region, and near the border, they will be connect somehow.
What makes it GH decides when to connect them or not? What are the limits for this dashed segment? How can I be sure, looking in the response body, what is happening (assuming I don’t know a priori that one of the points are inside the No-Go area)
Thank you very much!