Calculate route takes upwards of 40 seconds
Posted: Tue Apr 21, 2020 2:41 pm
Hello,
We are integrating with the xserver2 service to calculate the route and have this request
The call takes from about 40 seconds to 1min and 17 seconds tops, and earlier today we had a few timeouts in the code as well. Let us know if this is a knows issue for you guys, as it was not the case in the past and is there a way to determine more predictable if future calls result in a timeout?
Best regards,
John
We are integrating with the xserver2 service to calculate the route and have this request
Code: Select all
array:6 [
"resultFields" => array:5 [
"polyline" => true
"legs" => array:3 [
"enabled" => true
"polyline" => false
"tollSummary" => true
]
"toll" => array:3 [
"enabled" => true
"sections" => true
"systems" => true
]
"eventTypes" => array:3 [
0 => "TOLL_EVENT"
1 => "COUNTRY_EVENT"
2 => "ROUTE_VIOLATION_EVENT"
]
"segments" => array:3 [
"enabled" => true
"polyline" => true
"featureThemeIds" => array:2 [
0 => "PTV_SpeedPatterns"
1 => "PTV_TrafficIncidents"
]
]
]
"geometryOptions" => array:1 [
"responseGeometryTypes" => array:1 [
0 => "PLAIN"
]
]
"routeOptions" => array:2 [
"tollOptions" => array:1 [
"useDetailedToll" => true
]
"timeConsideration" => array:2 [
"$type" => "ExactTimeConsiderationAtStart"
"referenceTime" => "2020-04-21T16:55:59+03:00"
]
]
"requestProfile" => array:4 [
"featureLayerProfile" => array:1 [
"themes" => array:2 [
0 => array:2 [
"id" => "PTV_SpeedPatterns"
"enabled" => true
]
1 => array:2 [
"id" => "PTV_TrafficIncidents"
"enabled" => true
]
]
]
"routingProfile" => array:1 [
"course" => array:2 [
"toll" => array:1 [
"tollPenalty" => 0
]
"distanceTimeWeighting" => 90
]
]
"vehicleProfile" => array:1 [
"electronicTollCollectionSubscriptions" => "NONE"
]
"currency" => "EUR"
]
"coordinateFormat" => "EPSG:4326"
"waypoints" => array:3 [
0 => array:2 [
"$type" => "OffRoadWaypoint"
"location" => array:1 [
"offRoadCoordinate" => array:2 [
"x" => "26.102863317"
"y" => "44.434272809"
]
]
]
1 => array:2 [
"$type" => "OffRoadWaypoint"
"location" => array:1 [
"offRoadCoordinate" => array:2 [
"x" => "2.1700115889"
"y" => "41.388038574"
]
]
]
2 => array:2 [
"$type" => "OffRoadWaypoint"
"location" => array:1 [
"offRoadCoordinate" => array:2 [
"x" => "37.615020727"
"y" => "55.756961791"
]
]
]
]
]
Best regards,
John