The other highway properties are specified by the user as a
percentage and each highway either has that property or not. The
user's property preference is scaled into the range 0.0 (for 0%)
- to 2.0 (for 100%) to give a weighted preference, a second
+ to 1.0 (for 100%) to give a weighted preference, a second
"non-property" weighted preference is calcuated in the same way
after subtracting the user's preference from 100%. If a segment
- has this property then the calculated score is divided by the
- weighted preference, if the segment does not have this property
- then it is divided by the non-property weighted preference.
+ has a particular property then the calculated score is divided
+ by the weighted preference for that property, if the segment
+ does not have this property then it is divided by the
+ non-property weighted preference. To ensure that setting
+ property preferences near 50% do not cause large variations in
+ routes the highway's preference is found by taking the square
+ root of the property preference.
Implementation
--------------