Error message due to missing toll data (xRoute2)

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.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Error message due to missing toll data (xRoute2)

Post by Bernd Welter »

HI there,

what is the meaining of the following error message?

Code: Select all

{
  "faultInfo": {
    "$type": "DataNotAvailableFault",
    "hint": "Please contact your PTV representative to obtain data for toll calculation.",
    "parameter": "/routeRequest/resultFields/toll/costs/@enabled",
    "value": "true"
  },
  "message": "Due to a specific parameter of the request certain data is required to calculate the response but the data is not available."
}
Update 2.6.2020:
If this error message appears on Premise: Please ensure that the Content Upodate Service is installed and activated. For those who don't know that specific service: this is a plugin that updates local environments by downloading latest toll updates and also live traffic data (aka PTV_TrafficIncidents).
https://xserver2-europe-eu-test.cloud.p ... %20service
I know that toll is not yet covered by 100% in xRoute two - but can I compute at least some generic values?

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... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error message due to missing toll data (xRoute2)

Post by Bernd Welter »

HI there,

This error message appears when you try to access the new detailed toll via the ResultFields: the engine requires new data within a structure that isn't available for the current map - we already gather the data to provide it later.

Please use the LegResult field to get the toll in the well known "old school" style.

Best regards,
Bernd
Dein Kunde scheint über die ResultFields die Detailed Toll abzurufen. Diese ist aber im Moment für EUR noch nicht verfügbar.
Anstatt das TollResultField anzusprechen sollte er das LegResultField ansprechen, welches dann auch mit tollSummary die „alte Maut“ zurückgeben sollte.
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... :twisted:
AlexanderL
Posts: 11
Joined: Wed Nov 20, 2019 8:27 am

Re: Error message due to missing toll data (xRoute2)

Post by AlexanderL »

Thank you for the quick answer.
Unfortunately the field "TollSummary" just covers up the costs.
To check that the costs are correct, it's essential to know the toll-distance.
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error message due to missing toll data (xRoute2)

Post by Bernd Welter »

Hello Alex,

the value you need is not available so far.
At your own risk you could aggregate the segment distances by the toll flag (but we know that there's situations where the quality is not 100% correct. Here's how I aggregated the distances manually through LINQ:

Code: Select all

var agg = response.segments.GroupBy(g => g.attributes.roadAttributes.toll).Select(s => new { 
                key = s.Key,
                distance = s.Sum(d => d.distance),
                travelTime = s.Sum(t => t.travelTime)
            }).ToArray();
Please get back to me 1:1 these days!

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... :twisted:
AlexanderL
Posts: 11
Joined: Wed Nov 20, 2019 8:27 am

Re: Error message due to missing toll data (xRoute2)

Post by AlexanderL »

Hey Bernd,
Thank you very much for the code snippet. I can now calculate the toll costs so far... but in XS1 I was able to receive the “TollType”.
With the TollType I was able to filter to “NATIONALTOLL” and “CITYTOLL” and calculate the toll without any special charges (e.g. the Mont Blanc Tunnel).
Is there a possibility to filter these costs in XS2?
(Since 2.9 experimental the “TollRoadType” exists. Will that be the equivalent of XS1 “TollType”?)

Best regards,
Alex
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error message due to missing toll data (xRoute2)

Post by Bernd Welter »

Hello Alex,

look at https://xserver2-europe-eu-test.cloud.p ... llRoadType !
tollRoadType2.PNG
tollRoadType.PNG
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... :twisted:
AlexanderL
Posts: 11
Joined: Wed Nov 20, 2019 8:27 am

Re: Error message due to missing toll data (xRoute2)

Post by AlexanderL »

Hmm... I have read that, so I guess that means: "Yes, it is the equivalent". (but experimental) :lol:
Unfortunately the feature is part of the “Toll”, which data (for Europe) is not available at the moment.

Alex
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error message due to missing toll data (xRoute2)

Post by Bernd Welter »

right - not available right now.. We work on this.
And I try to get a test opportunity for players such as you...
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... :twisted:
User avatar
Bernd Welter
Site Admin
Posts: 2564
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Re: Error message due to missing toll data (xRoute2)

Post by Bernd Welter »

Hi,
news about the roadmap? check them here...
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... :twisted:
Post Reply