Page 1 of 1

Toll Currency empty ("NONE")

Posted: Mon Jul 24, 2017 10:48 am
by skinder
Hello,

we are facing problems with routings through Russia and Belarus using "calculateExtendedRoute". In the response document there are toll amounts which have no currency (value "NONE").

We are using xRoute v. 1.24.0.2. The CountryInfoOptions have "detailedTollCosts" and "currencyDescription" set to "true" in order to get detailed toll data.

In the response document the field "currencyISOCode" (of countryInfos) has a valid currency (i.e. "RUB" or "BYN"), but the child node "tollCostInfos" always has currency = "NONE".

According to the documentation of PTV xServer Version 1.24 the CountryInfoOptions.currency is deprecated and replaced by currencyISOCode, but I could not find a note that the currency field of the tollCostInfos would be also deprecated.

Is there a way to get the currency field in the tollCostInfos filled? Or is it reliable to just take the currencyISOCode of the parent countryInfos?

best regards,
Sascha Kinder

routing request example:

Code: Select all

{
  "waypoints": [
    {
      "coords": [
        {
          "point": {
            "x": 43.4498,
            "y": 56.2389
          }
        }
      ],
      "linkType": "NEXT_SEGMENT"
    },
    {
      "coords": [
        {
          "point": {
            "x": 21.228,
            "y": 55.66175
          }
        }
      ],
      "linkType": "NEXT_SEGMENT"
    }
  ],
  "options": [],
  "exceptionPaths": [],
  "details": {
    "binaryPathDesc": false,
    "boundingRectanglesC": 5,
    "boundingRectanglesOffset": 300,
    "brunnelManoeuvres": false,
    "detailLevel": "STANDARD",
    "dynamicInfo": false,
    "manoeuvreAttributes": false,
    "manoeuvreGroupRatio": 1,
    "manoeuvreGroups": true,
    "manoeuvres": true,
    "nodes": false,
    "polygon": true,
    "segmentAttributes": false,
    "segments": true,
    "texts": true,
    "totalRectangle": false,
    "urbanManoeuvres": false
  },
  "countryInfoOptions": {
    "allEuro": false,
    "detailedTollCosts": true,
    "currencyDescription": true,
    "reductionIDs": []
  },
  "callerContext": {
    "properties": [
      {
        "key": "ResponseGeometry",
        "value": "PLAIN"
      },
      {
        "key": "CoordFormat",
        "value": "OG_GEODECIMAL"
      },
      {
        "key": "Profile",
        "value": "truckfast"
      }
    ]
  }
}
Snippet from the xRoute response:

Code: Select all

"countryInfos": [
    
	[...]
	
    {
      "iuCode": 18,
      "partRouteInfo": {
        "distance": 408348,
        "time": 26478,
        "cost": 364417
      },
      "currency": "NONE",
      "currencyName": "Weißrussischer Rubel",
      "currencyISOCode": "BYN",
      "countryCode": "",
      "additionalInfo": "",     

	  [...]
	  
      "tollCostInfos": [
        {
          "tollStationFrom": {
            "tollStationName": "",
            "tollStationID": -1,
            "tollLocationType": "NORMAL",
            "routeListIndex": -1
          },
          "tollStationTo": {
            "tollStationName": "",
            "tollStationID": -1,
            "tollLocationType": "NORMAL",
            "routeListIndex": -1
          },
          "tollSectionID": -1,
          "tollProviderID": 0,
          "tollDistance": 364417,
          "tollPrice": 6595,
          "tollType": "NATIONALTOLL",
          "currency": "NONE"
        }
      ]
    },

Re: Toll Currency empty ("NONE")

Posted: Tue Aug 01, 2017 12:12 pm
by Bernd Welter
Hi Sascha,

looks buggy... I created a JIRA for this.
(MPXSRV-4253)

Best regards
Bernd

Re: Toll Currency empty ("NONE")

Posted: Wed Aug 02, 2017 3:23 pm
by skinder
Hello Bernd,

thanks for the information. For the time being we will use the currency of the CountryInfos then.

regards,
Sascha

Re: Toll Currency empty ("NONE")

Posted: Thu Aug 03, 2017 8:53 am
by Bernd Welter
Hello Sascha,

here is some info from DEV:
This is because there is no toll data available for IU 7016 (Russia Volga Federal District). You can check this with a view in the TollScenarios.ini. The corresponding IU (i.e. COUNTRYID 7016) is missing. And of course the same is true for the GP archive (rus-va_d.gp) with missing cid/cix files. But to return the currency we need this data. Another country without toll data is e.g. Finland. In case of routing there you also get no currency.
As far as I know there is a toll system in this country, but our data does not include it. Maybe we should concentrate on that and improve the toll data. Or is not the toll cost but only the currency relevant for the customer? That would make not much sense as the toll cost is always zero...
By the way: Russia is separated into several sub-areas. Might be the case that the values are available for some of those but not for all.

Best regards,
Bernd

Re: Toll Currency empty ("NONE")

Posted: Thu Aug 03, 2017 9:41 am
by skinder
Hi Bernd,

thank you again for the information.

So I understand there is no support for toll in (parts of) Russia and Finland.

But what about Belarus then? There are toll amounts in the response, but no currency. Is this country considered supported toll-wise?
Asterix wrote:
[...] Or is not the toll cost but only the currency relevant for the customer? That would make not much sense as the toll cost is always zero...
Our expectation is that whenever the routing response contains a toll amount > 0 a currency is provided as well.

Re: Toll Currency empty ("NONE")

Posted: Thu Aug 03, 2017 12:05 pm
by Bernd Welter
( once again: forwarded to the JIRA )