Recommended routing not taking direct route

Hi @andrzej,

Thanks for your reply, in Germany, it is a normal practice to favor highways for trucks, and it has no influence on cost because German highways are free. In France and Spain and Italy, most of highways have tolls, so people use them when the benefit is justified. Say, people are happy with a 50€ toll to save one hour but not for a gain limited to a few minutes (this is not a percentage of the total trip, just an absolute time gain).

So without using any WS avoid_tool param at runtime we would like the Direction Service to favor a route with highways when the benefit in distance or/and time is good enough compared to a route without tolls. Would this require yet-another-WS param to define such a benefit ratio? Or should we always invoke the Direction Service twice, a first time without avoid_highway then a second time with it, then compare the time gain?