Page 1 of 1

xServer1 | Current highway toll rates for Croatia

Posted: Tue Mar 03, 2020 10:49 pm
by logintegra
Hello!

We began to use xServer1 to calculate the price of motorway journeys - and in general, highway information works very well, distances and places of entry and exit are also as expected. The only doubt is the returned toll - for example HRK 332 (~EUR 45) instead of HRK 416 (~EUR 56) at current rates (https://hac.hr/en/toll/toll-rates/a1 -> vehicles over 3,5t - type III) for the Zagreb - Dugopolje section (city near Split in Croatia).

It seems to me that this price may depend (apart from the distance) only on the type of vehicle and date of travel - and we set these values in the request so that they correspond (according to our intuitions) to the average truck. I included the relevant fragments of request and response below.

I stumbled upon a topic concerning available scenarios (https://xserver.ptvgroup.com/forum/view ... ?f=7&t=859), but I don't know how to use it within a cloud version.

My questions are:
- Is there a way to find out available scenarios for Croatia in xServer1 cloud?
- Is it possible to check whether PTV has current data for Croatia?
- Are there any mistakes in our request if we try to find out rates for trucks over 3,5t?

Thank you in advance for any help :)

Partial request and response

URL: https://xroute-eu-n-test.cloud.ptvgroup ... endedRoute

Part of the request:

Code: Select all

{
  (..)
  "countryInfoOptions": {
    "$ type": "CountryInfoVehicleOptions",
    "tollDate": "2019-02-12T10:00:10+01:00",
    (..)
    "options": [
      {
        "parameter": "TYPE",
        "value": "TRL"
      },
      {
        "parameter": "NUMBER_OF_AXLES",
        "value": "3"
      },
      {
        "parameter": "TOTAL_WEIGHT",
        "value": "15000"
      },
      {
        "parameter": "FUEL_TYPE",
        "value": "DIESEL"
      }
    ]
  }
  "callerContext": {
    "properties": [
      {
        "key": "Profile",
        "value": "truckfast"
      },
      {
        "key": "CoordFormat",
        "value": "OG_GEODECIMAL"
      }
    ]
  }
}
Part of the response:

Code: Select all

"tollCostInfos": [
  {
    "tollStationFrom": {
      "tollStationName": "Zagreb",
      "tollStationID": 27,
      "tollLocationType": "NORMAL",
      "routeListIndex": 161,
      "manoeuvreType": "ENTER"
    },
    "tollStationTo": {
      "tollStationName": "Dugopolje",
      "tollStationID": 58,
      "tollLocationType": "NORMAL",
      "routeListIndex": 1127,
      "manoeuvreType": "EXIT"
    },
    "tollSectionID": 1103,
    "tollProviderID": 17,
    "tollDistance": 378405,
    "tollPrice": 33280,
    "tollType": "NATIONALSECTIONBASED",
    "currency": "HRK"
  }
]

Re: xServer1 | Current highway toll rates for Croatia

Posted: Wed Mar 04, 2020 9:01 am
by Bernd Welter
Hi, that looks suspicious to me, too.

I forwarded it to our data department (XSERS-1714)

Thanks for letting us know!

Re: xServer1 | Current highway toll rates for Croatia

Posted: Wed Mar 04, 2020 11:54 am
by Joost
keep in mind that the prices xServer give are always excluding VAT. In not sure if the prices on the site you linked are with or without VAT, but the difference between 332 and 416 is 25% witch I believe is the VAT rate for Croatia.

Re: xServer1 | Current highway toll rates for Croatia

Posted: Wed Mar 04, 2020 12:25 pm
by Bernd Welter
response from the Croatian Motorways, Ltd.  (hac.hr)
response from the Croatian Motorways, Ltd. (hac.hr)
vat.PNG (2.6 KiB) Viewed 3820 times
Thanks to Joost for the hint!

Re: xServer1 | Current highway toll rates for Croatia

Posted: Wed Mar 04, 2020 2:06 pm
by logintegra
Thank you very much for your help Bernd and Joost -> from the perspective I can see that we could guess that it is about VAT. This is very good news.

Thank you again :)