Page 1 of 1

Error message due to missing toll data (xRoute2)

Posted: Tue Nov 19, 2019 6:55 pm
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

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

Posted: Wed Nov 20, 2019 12:39 pm
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.

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

Posted: Thu Nov 21, 2019 1:30 pm
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.

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

Posted: Thu Nov 21, 2019 6:06 pm
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

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

Posted: Wed Dec 04, 2019 3:21 pm
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

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

Posted: Wed Dec 04, 2019 5:06 pm
by Bernd Welter
Hello Alex,

look at https://xserver2-europe-eu-test.cloud.p ... llRoadType !
tollRoadType2.PNG
tollRoadType.PNG
Best regards,
Bernd

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

Posted: Thu Dec 05, 2019 10:08 am
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

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

Posted: Thu Dec 05, 2019 10:20 am
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...

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

Posted: Fri Dec 13, 2019 2:30 pm
by Bernd Welter
Hi,
news about the roadmap? check them here...
Bernd