What are potential values for the REROUTEATTRACTIONFACTOR?

PTV's mobile solution based on off-line maps - standard application and SDK
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2574
Joined: Mon Apr 14, 2014 10:28 am
Contact:

What are potential values for the REROUTEATTRACTIONFACTOR?

Post by Bernd Welter »

A customer of mine spotted the REROUTEATTRACTIONFACTOR in a BCR file. Looks liek we missed to document that switch in the API docs. But here's the comment live from the source code:
values [0,100] in percent of cost per segment of the original route to influence the attraction to this route.
So 0 is very attractive, while 100 restores the regular behaviour without attraction
You can compare the meaning of this parameter with the xRoute1 ExceptionPath:
First we compute a base route.
Then we use the base route as exception path for the continuous re-routings considering the REROUTEATTRACTIONFACTOR.

Update 26.7.2021:
With the SDK you can set the native value of the attraction parameter as mentioned above.
But: in the Navigator application's BCR file itself you can only set some meta values:
  • -1 : do not consider
  • 0 : strong
  • 1 : normal
  • 2 : weak
which whill be matched to STRONG=0 , NORMAL=30, WEAK=70
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply