Page 1 of 1

Toll cost between stations

Posted: Mon May 08, 2017 10:26 am
by krzysiek mbis
Hi,
Is there a possibility to compute toll costs between every Station in the same way that we have for countries ?

Re: Toll cost between stations

Posted: Mon May 08, 2017 10:57 am
by Bernd Welter
Hello,

depending on your requirements you can choose out of two approaches :
  • EASY way : set CountryInfoOptions.calculatePartTollCosts = TRUE and evaluate ExtendedRoute.partTollCosts. This is sufficient. This is sufficient in case you need aggregated prices and distance between A and B, B and C, ... (though you might have to sum up some of the values, e.g. if succeeding waypoints are in different countries)
  • MORE flexible: set CountryInfoOptions.waypointIndexInTollCostInfo = TRUE and aggregate the required info based on the TollCostInfo array returned.
Best regards Bernd

Re: Toll cost between stations

Posted: Mon May 08, 2017 11:34 am
by krzysiek mbis
Thank you very much for quick response,
I will try the MORE flexible one.

Best Regards,
Krzysiek.