Toll cost between stations

This forum deals with any kind of routing computation whether it is simple A:B-routing, calculation of isochrones, simple matrix computation or nearest search.
Post Reply
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Toll cost between stations

Post by krzysiek mbis »

Hi,
Is there a possibility to compute toll costs between every Station in the same way that we have for countries ?
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Toll cost between stations

Post 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
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:
User avatar
krzysiek mbis
Posts: 37
Joined: Thu Aug 11, 2016 9:41 am

Re: Toll cost between stations

Post by krzysiek mbis »

Thank you very much for quick response,
I will try the MORE flexible one.

Best Regards,
Krzysiek.
Krzysiek Paziewski
.Net Developer/Team Leader at Marcos Bis
Katowice, Silesian District, Poland
Post Reply