L.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
L.supermap.networkAnalystService(url)
.findPath(params,function(result){
//doSomething
})
Extends
Events
-
inherited destroy
ServiceBase.js, line 49 -
Triggered after the resource is successfully released.
Properties:
Name Type Description thisL.supermap.ServiceBase This object.
-
inherited initialized
ServiceBase.js, line 36 -
Triggered after the constructor is constructed successfully.
Properties:
Name Type Description thisL.supermap.ServiceBase This object.
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 paramsL.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 paramsL.supermap.ComputeWeightMatrixParameters The ComputeWeightMatrixParameters class.
callbackRequestCallback The callback of result data returned by the server side.
-
inherited destroy()
ServiceBase.js, line 44 -
Disposes the resource. The property that references resource is set to null.
-
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 paramsL.supermap.FindClosestFacilitiesParameters The FindClosestFacilitiesParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.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 paramsL.supermap.FindLocationParameters The parameters of findLocation.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.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 paramsL.supermap.FindPathParameters The FindPathParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.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 paramsL.supermap.FindServiceAreasParameters The FindServiceAreasParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.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 paramsL.supermap.FindTSPPathsParameters The FindTSPPathsParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.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 paramsL.supermap.FacilityAnalystStreamParameters The FacilityAnalystStreamParameters class.
callbackRequestCallback The callback of result data returned by the server side.
resultFormatL.supermap.DataFormat L.supermap.DataFormat.GEOJSON optional The format of result data.
-
updateEdgeWeight(params, callback)
NetworkAnalystService.js, line 248 -
Update the weight of edge.
Name Type Description paramsL.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 paramsL.supermap.UpdateTurnNodeWeightParameters The UpdateTurnNodeWeightParameters class.
callbackRequestCallback The callback of result data returned by the server side.