- Request the feature layer theme PTV_PreferredRoutes
- Choose the segment categories that you want to consider, e.g. "preferredRouteTypes=LOCAL_TRANSPORTATION"
- Define the "strength of the preferencs" through preferredRoutePenalty, e.g. "preferredRoutePenalty=75"
Code: Select all
{
"waypoints": [
{"location": { "coordinate": { "x": 8.8332500256,"y": 49.872730307 } },
{"location": { "coordinate": { "x": 8.59845,"y": 49.803791 } }
],
"requestProfile": {
"vehicleProfile": {
"preferredRouteTypes": "DE_LONG_TRUCK,LOCAL_TRANSPORTATION",
},
"featureLayerProfile": {
"parameters": [
{
"key": "preferredRoutePenalty",
"value": "-75"
}
],
"themes": [
{
"id": "PTV_PreferredRoutes",
"enabled": true
}
]
}
},
"routeOptions": {
....
},
"resultFields": {
...
},
},
"scope": "globalscope",
"storedProfile": "truck40t"
}
Bernd