What is the meaning of... enforceShortestPath?
Posted: Tue Dec 01, 2015 5:59 pm
Hello together,
these days a contact asked us for "what is the meaning of the parameter enforceShortestPath in the xml routing profile?"...
OK, here is some little description...
While the regular parameter OPTIMIZATION (also known as distanceTimeWeighting ) is some kind of linear balance between
We recommend to solve the shortest paths by using proper values for parameters such as
Best regards Bernd
these days a contact asked us for "what is the meaning of the parameter enforceShortestPath in the xml routing profile?"...
OK, here is some little description...
While the regular parameter OPTIMIZATION (also known as distanceTimeWeighting ) is some kind of linear balance between
- driving distance (values around 0)
- driving period (values around 100)
- it sets all MalusByNetworkClass to 0 (i.e. there is no difference in the preference of a highway versus any other street category)
- the LevelingScope for each network class is set to -1 (i.e. which means the routing algorithm considers EVERY street segment in the map even if it is a small LEVEL6 road far away from any included WaypointDesc). This has a HUGE impact on performance and in most cases this behaviour is not really necessary!
We recommend to solve the shortest paths by using proper values for parameters such as
- MalusByNetworkClass
- UrbanMalus
- ResidentialMalus
- and so on...
Best regards Bernd