Toll calculation with PTV MapServer

We have been able to fix the problems concerning PTV MapServer 5.6 and toll updates.

With the new PTV MapServer, you can use the toll updates again. For that, you only have to use our toll update tool and the zip file containing the toll update for your map. Both can be downloaded in the PTV Developer Zone.

When having installed the toll update, you will see that you are getting the new prices with MapServer The code of your application has not to be changed for that.

Toll calculation is implemented now like that:

If you are using the included basic toll calculation, the price calculation is based on the date when the route starts. Starting your route in 2011 returns the prices of 2011 and starting your route in 2012 returns the prices of 2012. If you are not giving any start date, by default your system time is assumed to be the reference for toll calculation.

With earlier PTV MapServer versions (till version 5.5), the behavior was a little bit different. But now with new toll data files, we can provide the prices corresponding to the route date.

Additionally, you have the possibility to choose a certain toll scenario for price calculation by calling a certain PTV MapServer method. If you do so, the route date is ignored. More information can also be found in the PTV MapServer documentation under “Use Cases -> Routing -> How to use toll scenarios for toll calculation”.


By Martina Beck

Martina Beck has been working for PTV since 2000. As certified computer scientist she was originally responsible for providing customers with technical support and she later moved on to the Product Management division. Since 2011 she has been working for PTV as an online marketing manager in international marketing with an emphasis on social media (et al. Facebook, Twitter, Google+, YouTube). The PTV Developer Blog is the PTV Developer Components' lead channel. The posts on important topics and trends originate from close cooperation with developers, the product management and other experts.