XRoute tolls currency

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.

XRoute tolls currency

Postby Dobos Ionut » Thu Mar 12, 2020 10:12 am


Looking at the tolls returned from the /calculateRoute, we noticed that for courtries like Denmark there were values in the thousands. Are those values in danish krones? If so, do you also provide an option to convert the currency into euros (or any other currency) ?

Thank you,
Dobos Ionut
Posts: 13
Joined: Tue Dec 03, 2019 11:27 am

Re: XRoute tolls currency

Postby Joost » Thu Mar 12, 2020 12:51 pm

The TollCost element that contains the actual prices also contains a currency attribute which tell you what currency is used.

Details: https://xserver2.cloud.ptvgroup.com/das ... e.TollCost

Atm there is no option for having all amounts recalculated to a single currency of choice in xRoute 2.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Posts: 255
Joined: Fri Apr 25, 2014 1:46 pm

Re: XRoute tolls currency

Postby Bernd Welter » Fri Mar 13, 2020 2:36 pm

Hi there,

just let me add that prices are "before tax" (statement will be added to API soon) and I recommend to create a look-aside table with exchange factors between currencies on client side: returning the official values from local authorities is probably a proper result.

This will easily enble you to create a "transfer from->to" method with all currencies you might need in the end.

Best regards,
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

Bernd at Youtube
User avatar
Bernd Welter
Site Admin
Posts: 1545
Joined: Mon Apr 14, 2014 10:28 am

Return to PTV xRouteServer