How to get all toll prices in Czech Crowns?

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
Bernd Welter
Site Admin
Posts: 2695
Joined: Mon Apr 14, 2014 10:28 am
Contact:

How to get all toll prices in Czech Crowns?

Post by Bernd Welter »

Hello together,

today a customer asked me how to parametrize a routing request to get all mentioned toll prices in Czech Crowns.

The answer is simple but negative: there is no direct parametrizing that returns all costs in this non-Euro currency. xRoute is able to return one of the following styles depending on the parameter CountryInfoOptions.allEuro (or the derived version CountryInfoVehicleOptions)
  • .allEuro==true: Every toll price is returned in EURO, even in Czech Republic, United Kingdom, Danmark, Sweden, ...
  • .allEuro==false: We return the national currencies for each country which doesn't belong to the EURO.
The conversion factors are defined in the maps currencies.ini.
yellow column shows conversion factors
yellow column shows conversion factors
Check the attached images.
So if you want to get every price in the same NON EURO currency you have to convert it on client side, e.g. based on those factors.

Regards Bernd
International route from London via  Stockholm to Prague
International route from London via Stockholm to Prague
allEuro==TRUE<br />Every price is transformed in EURO
allEuro==TRUE
Every price is transformed in EURO
result in allEuro==FALSE<br />Every toll price is given in national currencies
result in allEuro==FALSE
Every toll price is given in national currencies
Post Reply