Sample "SearchGraph + MultipleTravelTimesConsideration"

Data which is used in a more general manner can be requested by xData service. Therefore this data is not provided by one of the other functional services, but concentrated in an own independent service.
Attention: this is not the platform for the data itself. If you have questions about missing data or the handling of binary maps please look at Data and Content.
Post Reply
User avatar
Bernd Welter
Site Admin
Posts: 2860
Joined: Mon Apr 14, 2014 10:28 am
Contact:

Sample "SearchGraph + MultipleTravelTimesConsideration"

Post by Bernd Welter »

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

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"
      ]
    }
  }
}
Bernd Welter
Technical Partner Manager Developer Components
PTV Logistics - Germany

Bernd at... The Forum,LinkedIn, Youtube, StackOverflow
I like the smell of PTV Developer in the morning... :twisted:
Post Reply