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.

Error message due to missing toll data (xRoute2)

Postby Bernd Welter » Tue Nov 19, 2019 6:55 pm

HI there,

what is the meaining of the following error message?

javascript code
{
"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."
}


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
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

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

Postby Bernd Welter » Wed Nov 20, 2019 12:39 pm

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
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

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

Postby AlexanderL » Thu Nov 21, 2019 1:30 pm

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

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

Postby Bernd Welter » Thu Nov 21, 2019 6:06 pm

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:
csharp code
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
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

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

Postby AlexanderL » Wed Dec 04, 2019 3:21 pm

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

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

Postby Bernd Welter » Wed Dec 04, 2019 5:06 pm

Hello Alex,

look at https://xserver2-europe-eu-test.cloud.p ... route.html#com.ptvgroup.xserver.xroute.TollRoadType !

tollRoadType2.PNG
tollRoadType.PNG


Best regards,
Bernd
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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

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

Postby AlexanderL » Thu Dec 05, 2019 10:08 am

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

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

Postby Bernd Welter » Thu Dec 05, 2019 10:20 am

right - not available right now.. We work on this.
And I try to get a test opportunity for players such as you...
Bernd Welter
Senior Technical Consultant Developer Components
PTV GROUP - Germany

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


Return to PTV xRouteServer

cron