new mapboxgl.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 mapboxgl.supermap.NetworkAnalystService(url)
.findPath(params,function(result){
//doSomething
})
Extends
Events
-
inherited initialized
ServiceBase.js, line 23 -
Triggered after the constructor construct succeeds.
Properties:
Name Type Description thisObject This object.
Methods
-
burstPipelineAnalyst(params, callback)
NetworkAnalystService.js, line 46 -
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 paramsSuperMap.BurstPipelineAnalystParameters The BurstPipelineAnalystParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
computeWeightMatrix(params, callback)
NetworkAnalystService.js, line 67 -
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 paramsSuperMap.ComputeWeightMatrixParameters The ComputeWeightMatrixParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
findClosestFacilities(params, callback, resultFormat)
NetworkAnalystService.js, line 88 -
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 paramsSuperMap.FindClosestFacilitiesParameters The FindClosestFacilitiesParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
findLocation(params, callback, resultFormat)
NetworkAnalystService.js, line 134 -
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 paramsSuperMap.FindLocationParameters The parameters of findLocation.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
findMTSPPaths(params, callback, resultFormat)
NetworkAnalystService.js, line 203 -
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 paramsSuperMap.FindMTSPPathsParameters The FindMTSPPathsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
findPath(params, callback, resultFormat)
NetworkAnalystService.js, line 157 -
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 paramsSuperMap.FindPathParameters The FindPathParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
findServiceAreas(params, callback, resultFormat)
NetworkAnalystService.js, line 226 -
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 paramsSuperMap.FindServiceAreasParameters The FindServiceAreasParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
findTSPPaths(params, callback, resultFormat)
NetworkAnalystService.js, line 180 -
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 paramsSuperMap.SuperMap.FindTSPPathsParameters The FindTSPPathsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
streamFacilityAnalyst(params, callback, resultFormat)
NetworkAnalystService.js, line 111 -
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 paramsSuperMap.FacilityAnalystStreamParameters The FacilityAnalystStreamParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatSuperMap.DataFormat SuperMap.DataFormat.GEOJSON optional The format of result data. The default format is GeoJSON.
-
updateEdgeWeight(params, callback)
NetworkAnalystService.js, line 249 -
Update the weight of edge.
Name Type Description paramsSuperMap.UpdateEdgeWeightParameters The UpdateEdgeWeightParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
updateTurnNodeWeight(params, callback)
NetworkAnalystService.js, line 270 -
Update the weight of turn node
Name Type Description paramsSuperMap.UpdateTurnNodeWeightParameters The UpdateTurnNodeWeightParameters class.
callbackRequestCallback The callback of result data returned by the server side.