I'm trying to compute a square matrix of 3951 locations. I'm sending a request to XDima with parameters:
- startLocations - list of all 3951 locations
- destinationLocations - same list of all 3951 locations
- label - just some random name
Code: Select all
HighPerformanceRoutingNetworksListResponse res = svcData.listHighPerformanceRoutingNetworks(new ListHighPerformanceRoutingNetworksRequest()
{
resultFields = new ListHighPerformanceRoutingNetworksResultFields() {
profilesSpecified = true,
profiles = true,
highPerformanceRoutingNetworkOptionsSpecified = true,
highPerformanceRoutingNetworkOptions = true
}
}) ;
Code: Select all
CreateDistanceMatrixRequest dimaRequest = new CreateDistanceMatrixRequest()
{
startLocations = dictLocation.Values.Select(l => l.routeLocation).ToArray(),
distanceMatrixOptions = new DistanceMatrixOptions()
{
routingTypeSpecified = true,
routingType = RoutingType.HIGH_PERFORMANCE_ROUTING,
},
requestProfile = info.highPerformanceRoutingNetworkDescription.profile
};
if (info.highPerformanceRoutingNetworkDescription != null)
{
dimaRequest.distanceMatrixOptions.geographicRestrictions = info.highPerformanceRoutingNetworkDescription?.highPerformanceRoutingNetworkOptions?.geographicRestrictions;
dimaRequest.distanceMatrixOptions.timeConsideration = info.highPerformanceRoutingNetworkDescription?.highPerformanceRoutingNetworkOptions?.timeConsideration;
dimaRequest.distanceMatrixOptions.contentSnapshotId = info.highPerformanceRoutingNetworkDescription?.highPerformanceRoutingNetworkOptions?.contentSnapshotId;
}