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.
How to find out Toll Charge has changed, from which date?
How to find out Toll Charge has changed, from which date?
Regards,
Niren Patel
Core Developer
BRABENDER tech
Niren Patel
Core Developer
BRABENDER tech
Re: How to find out Toll Charge has changed, from which date
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
Senior Technical Consultant
PTV Benelux
- Bernd Welter
- Site Admin
- Posts: 2695
- Joined: Mon Apr 14, 2014 10:28 am
- Contact:
Re: How to find out Toll Charge has changed, from which date
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
Best regards,
Bernd
You might use this info to check (manually) what validity periods are given:
TOLLSCENARIOID;COUNTRYID;LANGUAGECODE;NAME;DESCRIPTION1;DESCRIPTION2;VALIDFROM;CREATEDAT;RELEVANCE;LASTMODIFICATION;MANDATORYTOLLNAME
Best regards,
Bernd
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...
Technical Partner Manager Developer Components
PTV Logistics - Germany
Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning...