Page 1 of 1

Change currency conversion factor

Posted: Thu Oct 17, 2019 11:35 am
by steiner
Hallo,

Is it possible, to change the currency conversion factor?

I have changed 1 factor (Swiss Franc) in the maps currency.ini and restart the xroute-server, but there was no change at the toll-price.

We calculate the toll in euro (allEuro = true)

best regards

Jürgen

Re: Change currency conversion factor

Posted: Thu Oct 17, 2019 12:12 pm
by Joost
Your method is the correct one (altering the currencies.ini ). I'm not sure why it didn't work. You have to check this with your support conact.

That said: this is not a workflow I would recommend. The currencies.ini is part of the toll updates and will get overwritten with most toll updates. Also changing the file requires server files access, a restart of the xRoute. Things that usual you want to avoid in production environments.

If you want to work with your own conversion rates I would recommend turning allEuro to false and convert them in your own middle ware. It is a bit more work to build, but much easier to maintain long term and much more flexible to changes.

Re: Change currency conversion factor

Posted: Thu Oct 17, 2019 1:39 pm
by steiner
Thanks for your answers