Method Overview
Name | Return Type | Summary | Object | |
---|---|---|---|---|
Promise<ClosestFacilitySolveResult> | more details Solves the closest facility. | more details | closestFacility |
Method Details
-
solve(url, params, requestOptions){Promise<ClosestFacilitySolveResult>}
-
Solves the closest facility.
Parameters:url 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).
Returns:Type Description Promise<ClosestFacilitySolveResult> When resolved, returns an instance of ClosestFacilitySolveResult Example:solve(url, params).then(function(solveResult){ // Do something with the solveResults here });