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