Below are the request snippets I've used:
Create High Performance Routing Network with TimeSpanConsideration
Code: Select all
{
"label": "t1",
"scope": "samplerequest",
"storedProfile": "trailertruck",
"requestProfile": {
"featureLayerProfile": {
"themes": [
{
"id": "PTV_TruckAttributes",
"enabled": true
}
]
},
"vehicleProfile": {
"dimensions": {
"height": "500"
}
}
},
"highPerformanceRoutingNetworkOptions": {
"timeConsideration": {
"$type": "TimeSpanConsideration",
"referenceTime": "2023-03-29T15:00:00.000Z",
"timeSpan": 7200
},
"geographicRestrictions": {
"searchSpaceBounds": {
"restrictionMode": "CUSTOM",
"customBounds": {
"minX": -3.95000004,
"maxX": -3.4499999651,
"minY": 40.229999991,
"maxY": 40.549999991
}
}
}
}
}
Code: Select all
{
"label": "t5",
"scope": "ttttt",
"storedProfile": "trailertruck",
"requestProfile": {
"featureLayerProfile": {
"themes": [
{
"id": "PTV_TruckAttributes",
"enabled": true
}
]
},
"vehicleProfile": {
"dimensions": {
"height": "500"
}
}
},
"highPerformanceRoutingNetworkOptions": {
"timeConsideration": {
"$type": "SnapshotTimeConsideration",
"referenceTime": "2023-03-29T15:00:00.000Z"
},
"geographicRestrictions": {
"searchSpaceBounds": {
"restrictionMode": "CUSTOM",
"customBounds": {
"minX": -3.95000004,
"maxX": -3.4499999651,
"minY": 40.229999991,
"maxY": 40.549999991
}
}
}
}
}
Request
Code: Select all
{
"scope": "allscopes",
"resultFields": {
"highPerformanceRoutingNetworkOptions": false,
"profiles": false
},
"returnOnlyMatchingNetworks": true,
"highPerformanceRoutingNetworkOptions": {
"timeConsideration": {
"$type": "TimeSpanConsideration",
"referenceTime": "2023-03-29T15:00:00.000Z",
"timeSpan": 7200
},
"geographicRestrictions": {
"searchSpaceBounds": {
"restrictionMode": "CUSTOM",
"customBounds": {
"minX": -3.95000004,
"maxX": -3.4499999651,
"minY": 40.229999991,
"maxY": 40.549999991
}
}
}
}
}
Code: Select all
{
"$type": "HighPerformanceRoutingNetworksListResponse",
"highPerformanceRoutingNetworkInformation": [
{
"highPerformanceRoutingNetworkDescription": {
"id": "f31381ed-0f08-485c-80e2-d8bdf32120e9",
"label": "car_2023-03-29T14:00:00+00:00",
"tenant": "globaltenant",
"scope": "globalscope",
"lastUsedAt": "2023-03-29T06:01:08.000Z",
"size": 20763201
}
}
]
}
Request
Code: Select all
{
"scope": "allscopes",
"resultFields": {
"highPerformanceRoutingNetworkOptions": false,
"profiles": false
},
"returnOnlyMatchingNetworks": true,
"highPerformanceRoutingNetworkOptions": {
"timeConsideration": {
"$type": "SnapshotTimeConsideration",
"referenceTime": "2023-03-29T15:00:00.000Z"
},
"geographicRestrictions": {
"searchSpaceBounds": {
"restrictionMode": "CUSTOM",
"customBounds": {
"minX": -3.95000004,
"maxX": -3.4499999651,
"minY": 40.229999991,
"maxY": 40.549999991
}
}
}
}
}
Code: Select all
{
"$type": "HighPerformanceRoutingNetworksListResponse"
}