new SuperMap.FindPathParameters(options)
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
hasLeastEdgeCountboolean
-
Whether to carry out the optimal path analysis according to the least number of arcs. True means analyzing according to the least number of arcs, and returns the best path that has the minimum impedance in the least number of arcs; False means directly returning the path of the minimum impedance, regardless of the number of arcs.
-
isAnalyzeByIdboolean
-
Whether to specify nodes for path analysis through the ID numbers. The default value is false. The node or the facility point passed by the specified path analysis has two ways: entering the node ID number or directly entering the point coordinate. When this field is true, means that passing the node ID specified path point, which is FindPathParameters.nodes = [ID1,ID2,...]; otherwise, means that passing the node coordinate specified path point, which is FindPathParameters.nodes = [new SuperMap.Geometry.Point(x1,y1),new SuperMap.Geometry.Point(x2,y2),...].
-
nodesArray.<(SuperMap.Geometry.Point|L.LatLng|L.Point|ol.geom.Point|number)>
-
The node or the facility point array passed by the optimal path analysis. This field contains at least two points. When FindPathParameters.isAnalyzeById = false, nodes should be the coordinate array of the point; When FindPathParameters.isAnalyzeById = true, nodes should be the ID array of the point.
-
The general parameters for transportation network analyses.
Methods
-
destroy()
FindPathParameters.js, line 61 -
Disposes the resource. The property that references resource is set to null.