As we've discussed in out last call, we're trying to get the toll details that are not yet available and soon to be released at the start of 2020. We've been presented with an alternative: to make the call with country events, add those points as waypoints, and then repeat the call with Toll Events. Unfortunately, the toll event does not seem to have any impact on the response.
Here is a RouteRequest that we are using:
Code: Select all
{
"resultFields": {
"polyline": true,
"legs": {
"enabled": true,
"polyline": true,
"tollSummary": true
},
"toll": {
"enabled": true,
"costs": {
"enabled": true,
"additionalPaymentMethods": true,
"attributes": true
},
"systems": false
},
"eventTypes": [
"TOLL_EVENT",
"COUNTRY_EVENT"
]
},
"routeOptions": {},
"geometryOptions": {
"responseGeometryTypes": [
"PLAIN"
]
},
"requestProfile": {
"routingProfile": {
"course": {
"toll": {
"tollPenalty": 0
}
}
},
"vehicleProfile": {
"electronicTollCollectionSubscriptions": "NONE"
},
"currency": "EUR"
},
"coordinateFormat": "EPSG:4326",
"waypoints": [
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 5.9134999164,
"y": 49.851970717
}
},
"name": "Start"
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 6.1213250692,
"y": 49.472504164
}
},
"name": "Border 1"
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 7.5631292162,
"y": 47.575178616
}
},
"name": "Border 2"
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 9.0352971513,
"y": 45.839161156
}
},
"name": "Border 3"
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 11.162109375,
"y": 43.81867485545323
}
},
"name": "Destination"
}
]
}
Best Regards,
John