Matrix routing effect due to category scope (LEVELLING)
Posted: Mon Mar 12, 2018 12:01 pm
HI there,
today I was asked for the reason why a relation (A=>B1)'s routing result differs within a matrix routing if another waypoint B2 is added to the calculateMatrixInfo request.
In other words:
The client computed the two transactions based on
A : (B1)
A : (B1,B2)
and compared the partial results of the (A:B1) which differed.
I created some images that explain what causes this behaviour which occurs whenever a routing is based on levelling (uses the category scope): To avoid such a behaviour you could ether set the category scope of all NC's to -1, but keep in mind:
Best regards,
Bernd
today I was asked for the reason why a relation (A=>B1)'s routing result differs within a matrix routing if another waypoint B2 is added to the calculateMatrixInfo request.
In other words:
The client computed the two transactions based on
A : (B1)
A : (B1,B2)
and compared the partial results of the (A:B1) which differed.
I created some images that explain what causes this behaviour which occurs whenever a routing is based on levelling (uses the category scope): To avoid such a behaviour you could ether set the category scope of all NC's to -1, but keep in mind:
- bad impact on performance because many more segments have to be evaluated
- maybe tracks returned you don't want to (would you really want to leave the highway in the middle of a 600km route just to save 1-2 km of total distance?)
Best regards,
Bernd