Method Overview
Name | Return Type | Summary | Object |
---|---|---|---|
Promise<ClosestFacilitySolveResult> | Solves the closest facility. more details | closestFacility |
Method Details
-
solve(url, params, requestOptions){Promise<ClosestFacilitySolveResult>}
-
Solves the closest facility.
Parametersurl StringURL to the ArcGIS Server REST resource that represents a network analysis service.
params ClosestFacilityParametersDefines the parameters of the closest facility analysis.
requestOptions ObjectoptionalAdditional options to be used for the data request (will override requestOptions defined during construction).
ReturnsType Description Promise<ClosestFacilitySolveResult> When resolved, returns an instance of ClosestFacilitySolveResult. Examplesolve(url, params).then(function(solveResult){ // Do something with the solveResults here });