new SuperMap.FindTSPPathsParameters(options)
Name | Type | Description | ||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
options |
Object |
The parameters.
|
Members
-
endNodeAssignedboolean
-
Whether to specify the end point, lets the last point of the specified waypoint as the end point. True represents specifying the end point, then the end point must be visited last by the traveling salesman.
-
isAnalyzeByIdboolean
-
Whether to specify the waypoint through the node ID number, that is, specified by coordinates.
-
nodesArray.<(SuperMap.Geometry.Point|L.LatLng|L.Point|ol.geom.Point|number)>
-
The analysis waypoint array of the traveling salesman, the field must be set. When FindTSPPathsParameters.isAnalyzeById = false , nodes should be the coordinate array of the point; When FindTSPPathsParameters.isAnalyzeById = true, nodes should be the ID array of the point.
-
The TransportationAnalystParameter class. This class can set the side barrier, the barrier point, the name identification of the weight field information, turn weight field and other information. The TransportationAnalystParameter type, although it is an optional parameter, but if the resultSetting field of them is not set, and then the returned result spatial information and so on are empty.
Methods
-
destroy()
FindTSPPathsParameters.js, line 55 -
Disposes the resource. The property that references resource is set to null.