How to find out Toll Charge has changed, from which date?

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.

How to find out Toll Charge has changed, from which date?

Postby nirengp » Fri May 25, 2018 4:21 am

Hi,

We use route service to calculate route distance and toll charges. And for efficiency we cache the details. Now, when the Toll charge changes, the cached data becomes obsolete. However, is their any mechanism available in PTV xServer API to find out if the Toll charge has changed. We know their is a way to get route calculation based on date using START_TIME parameter or CountryInfoOptions.tollDate. However, that will not allow us to cache the calculated route data efficiently.
Regards,
Niren Patel
Core Developer
BRABENDER tech
nirengp
 
Posts: 1
Joined: Wed Jun 28, 2017 12:54 pm

Re: How to find out Toll Charge has changed, from which date

Postby Joost » Fri May 25, 2018 6:54 am

If you use CountryInfoOptions.tollDate, the result will also include ExtendedRoute.CountryInfo[].scenarioId . You can use this to check if a newer scenarios is used. Keep in mind that scenarioId's are unique for a specific map release. Meaning that if you deploy a newer map you should flush your cache.
Joost Claessen
Senior Technical Consultant
PTV Benelux
Joost
 
Posts: 203
Joined: Fri Apr 25, 2014 1:46 pm

Re: How to find out Toll Charge has changed, from which date

Postby Bernd Welter » Fri May 25, 2018 9:24 am

And for your information: the relevant scenario meta data is available in the TollScenarios.INI in your map folder.
You might use this info to check (manually) what validity periods are given:

TOLLSCENARIOID;COUNTRYID;LANGUAGECODE;NAME;DESCRIPTION1;DESCRIPTION2;VALIDFROM;CREATEDAT;RELEVANCE;LASTMODIFICATION;MANDATORYTOLLNAME

TollScenarios.ini.PNG
Sample of the TollScenarios in my environment.
Reduced to ENG descriptions. Shows 4 scenarios for Germany (49). Some are marked as FORECASTS.


Best regards,
Bernd
Bernd Welter
Manager Technical Consulting & Requirement Engineering
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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


Return to PTV xRouteServer

cron