Get list of countries in route
Posted: Fri Feb 05, 2021 7:33 am
Hello,
can I get full list of contries inculded in the route in RouteResponse?
can I get full list of contries inculded in the route in RouteResponse?
Everything around the product PTV xServers.
https://xserver-forum.ptvlogistics.com/
Code: Select all
{
"waypoints": [
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 6.22029,
"y": 49.61513
}
}
},
{
"$type": "OffRoadWaypoint",
"location": {
"offRoadCoordinate": {
"x": 2.1700100683,
"y": 41.388038574
}
}
}
],
"resultFields": {
"eventTypes": [
"COUNTRY_EVENT"
]
}
}
Code: Select all
{
"$type": "RouteResponse",
"distance": 1160646,
"travelTime": 55429.948,
"events": [
{
"$type": "CountryEvent",
"eventType": "COUNTRY_EVENT",
"coordinate": {
"x": 6.2202900472,
"y": 49.615130034
},
"distanceFromStart": 0,
"travelTimeFromStart": 0,
"country": "LU"
},
{
"$type": "CountryEvent",
"eventType": "COUNTRY_EVENT",
"coordinate": {
"x": 6.1213250692,
"y": 49.472504164
},
"distanceFromStart": 23232,
"travelTimeFromStart": 1398.32,
"country": "FR"
},
{
"$type": "CountryEvent",
"eventType": "COUNTRY_EVENT",
"coordinate": {
"x": 2.8653062122,
"y": 42.465136293
},
"distanceFromStart": 998299,
"travelTimeFromStart": 47117.747,
"country": "ES"
}
],
"violated": false
}