xServer1 | Current highway toll rates for Croatia
Posted: Tue Mar 03, 2020 10:49 pm
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:
Part of the response:
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"
}
]
}
}
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"
}
]