to calculate the total toll for a give route. That works fine but I can't seem to find a way to use the CountryInfoVehicleOptions parameter or find another way to specify the type of truck/emmission class.
I did find the profile "truckfast" but I'd like to further specify the weight and emission rates
My current request looks as follows:
Code: Select all
{
"waypoints": [
{
"coords": [
{
"point": {
"x": 4.47056,
"y": 51.9229
}
}
],
"linkType": "NEXT_SEGMENT"
},
{
"coords": [
{
"point": {
"x": 13.41145,
"y": 52.52343
}
}
],
"linkType": "NEXT_SEGMENT"
},
{
"coords": [
{
"point": {
"x": 11.58023,
"y": 48.13913
}
}
],
"linkType": "NEXT_SEGMENT"
}
],
"callerContext": {
"properties": [
{
"key": "CoordFormat",
"value": "OG_GEODECIMAL"
},
{
"key": "ResponseGeometry",
"value": "PLAIN,WKB"
},
{
"key": "Profile",
"value": "truckfast"
}
]
},
"details": {
"binaryPathDesc": false,
"boundingRectanglesC": 0,
"boundingRectanglesOffset": 0,
"brunnelManoeuvres": false,
"detailLevel": "BORDERS",
"dynamicInfo": false,
"manoeuvreAttributes": false,
"manoeuvreGroups": false,
"manoeuvres": false,
"nodes": false,
"polygon": false,
"segmentAttributes": false,
"segments": false,
"texts": false,
"tollManoeuvres": true,
"totalRectangle": false,
"urbanManoeuvres": false
},
"countryInfoOptions": {
"allEuro": true,
"tollTotals": true,
"detailedTollCosts": true
}
}
Code: Select all
"countryInfoOptions": {
"allEuro": true,
"tollTotals": true,
"detailedTollCosts": true,
"options": {
"VehicleOption": [
{
"parameter": "TYPE",
"value": "CAR"
}
]
}
}
Code: Select all
"options": [
{
"$type": "SearchOption",
"param": "RESULT_LANGUAGE",
"value": "dut"
},
{
"$type": "SearchOption",
"param": "COUNTRY_CODETYPE",
"value": "1"
}
],