Issue with Listing High Performance Routing Networks using returnOnlyMatchingNetworks and SnapShotTimeConsideration
Posted: Tue Apr 25, 2023 12:57 pm
I've encountered an issue when listing high performance routing networks with the returnOnlyMatchingNetworks option. It seems that it does not return the high performance routing network if SnapShotTimeConsideration is used.
Below are the request snippets I've used:
Create High Performance Routing Network with TimeSpanConsideration
Create High Performance Routing Network with SnapShotTimeConsideration
When calling ListHighPerformanceNetworks with options for TimeSpanConsideration, the created High Performance Routing Network (HPRN) is returned:
Request
Response
But if we use hprn network options with SnapShotTimeConsideration, it does not return any HPRN.
Request
Response
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"
}