new ol.supermap.NetworkAnalystService(url, options)
| Name | Type | Description | ||||||||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
url |
string |
The url of service. The url to request NetworkAnalystService should be: |
||||||||||||||||||||||||
options |
Object |
The optional parameters.
|
Example
new ol.supermap.NetworkAnalystService(url)
.findPath(params,function(result){
//doSomething
})
Extends
Methods
-
burstPipelineAnalyst(params, callback)
NetworkAnalystService.js, line 45 -
Analysis the burst pipeline: analyze the given edge or node as the pipeline burst node, and return the critical node ID array, common node ID array and upstream/downstream edge ID array.
Name Type Description paramsol.supermap.BurstPipelineAnalystParameters The BurstPipelineAnalystParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
computeWeightMatrix(params, callback)
NetworkAnalystService.js, line 66 -
Compute weight of matrix. The costs matrix refers to a 2D matrix computed by the costs fields in the traffic network analysis parameters, which is used to store the resources costs between each pairs of the specified points.
Name Type Description paramsol.supermap.ComputeWeightMatrixParameters The ComputeWeightMatrixParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
findClosestFacilities(params, callback, resultFormat)
NetworkAnalystService.js, line 87 -
Find closest facilities. It is used to find the closest facilities from the selected ones for the specified event site(s) in the network. The closest facilities are those that have the least impedance in the specified direction -- either from the event site to the facility or from the facility to the event site.
Name Type Default Description paramsol.supermap.FindClosestFacilitiesParameters The FindClosestFacilitiesParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
findLocation(params, callback, resultFormat)
NetworkAnalystService.js, line 133 -
Find location. It is used to find the optimal location from multiple candidate locations for a facility, by matching the supply and demand based on the objectives and constraints.
Name Type Default Description paramsol.supermap.FindLocationParameters The FindLocationParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
findMTSPPaths(params, callback, resultFormat)
NetworkAnalystService.js, line 202 -
Find paths of multi-traveling. The multi-traveling salesman analysis is also called the logistics and distribution, referring to in the network data set, given M distribution centers and N distribution destinations (M, N are integers greater than zero), and finds the cost-effective distribution path, and gives the corresponding route. The function of the logistic distribution is to solve the problem that how to reasonably distribute the distribution order and the delivery route to get the minimum distribution total cost or the minimum cost of each distribution center.
Name Type Default Description paramsol.supermap.FindMTSPPathsParameters The FindMTSPPathsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
findPath(params, callback, resultFormat)
NetworkAnalystService.js, line 156 -
Find optimal path. The optimal path analysis refers to finding the path with the minimum cumulative impedance by visiting all the specified nodes in order.
Name Type Default Description paramsol.supermap.FindPathParameters The FindPathParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
findServiceAreas(params, callback, resultFormat)
NetworkAnalystService.js, line 225 -
Find service areas. It is a kind of network analysis, used to determine the area that can be served by a service site based on specified criteria.
Name Type Default Description paramsol.supermap.FindServiceAreasParameters The FindServiceAreasParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
findTSPPaths(params, callback, resultFormat)
NetworkAnalystService.js, line 179 -
Find paths of traveler. TSP is an unordered route analysis. It starts from the Start point (the default is the first point that you specify), and finds a route that traverses all nodes with minimum cost. You may also specify an End point. Thus, It finds a route that traverses all nodes and arrives at the End point with minimum cost.
Name Type Default Description paramsol.supermap.ol.supermap.FindTSPPathsParameters The FindTSPPathsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
streamFacilityAnalyst(params, callback, resultFormat)
NetworkAnalystService.js, line 110 -
Find key facilities in the upstream and downstream. It returns the key node ID array and its downstream arc segment ID array by finding key facility nodes in the upstream/downstream of a given arc or node.
Name Type Default Description paramsol.supermap.FacilityAnalystStreamParameters The FacilityAnalystStreamParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatol.supermap.DataFormat ol.supermap.DataFormat.GEOJSON optional The format of result data.
-
updateEdgeWeight(params, callback)
NetworkAnalystService.js, line 248 -
Update the weight of edge.
Name Type Description paramsol.supermap.UpdateEdgeWeightParameters The UpdateEdgeWeightParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
updateTurnNodeWeight(params, callback)
NetworkAnalystService.js, line 269 -
Update the weight of turn node.
Name Type Description paramsol.supermap.UpdateTurnNodeWeightParameters The UpdateTurnNodeWeightParameters class.
callbackRequestCallback The callback of result data returned by the server side.