Sample "SearchGraph + MultipleTravelTimesConsideration"
Posted: Wed May 19, 2021 11:03 am
Cheers,
uring yesterdays webinar about timedependency in routing and tour optimization I've been asked whether we can calculate a searchgraph based on the MultipleTravelTimesConsideration mode. The answer is: yes we can. Here's a sample request of such a graph based on
- a 23h horizon
- which considers PTV_TruckSpeedPatterns and PTV_TruckAttributes
- limits the searchspace to Luxemburg
- sets an explicit vehicle height of 5 meters
Works OnPremise only,
Have fun!
Bernd
uring yesterdays webinar about timedependency in routing and tour optimization I've been asked whether we can calculate a searchgraph based on the MultipleTravelTimesConsideration mode. The answer is: yes we can. Here's a sample request of such a graph based on
- a 23h horizon
- which considers PTV_TruckSpeedPatterns and PTV_TruckAttributes
- limits the searchspace to Luxemburg
- sets an explicit vehicle height of 5 meters
Works OnPremise only,
Have fun!
Bernd
Code: Select all
{
"label": "Luxembourg with truck attributes, height 5m",
"scope": "samplerequest",
"storedProfile": "trailertruck",
"requestProfile": {
"featureLayerProfile": {
"themes": [
{
"id": "PTV_TruckAttributes",
"enabled": true
},
{
"id": "PTV_TruckSpeedPatterns",
"enabled": true
}
]
}
},
"highPerformanceRoutingNetworkOptions": {
"timeConsideration" : {
"$type" : "MultipleTravelTimesConsideration",
"horizon" : {
"$type" : "StartEndInterval",
"start" : "2021-05-19T00:00:00+01:00",
"end" : "2021-05-19T23:00:00+01:00"
}
},
"geographicRestrictions": {
"allowedCountries": [
"LU"
]
}
}
}