Class: FindTSPPathsParameters

SuperMap.FindTSPPathsParameters

The FindTSPPathsParameters class. The FindTSPPathsParameters class. 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. Both of TSP and Find Optimal Route are economical routes. The difference between them is the traversal order of nodes. The Find Optimal Route analysis must obey a given order to traverse nodes, but TSP is unordered, only meeting the condition that traverses all nodes.

new SuperMap.FindTSPPathsParameters(options)

FindTSPPathsParameters.js, line 5
Name Type Description
options Object

The parameters.

Name Type Default Description
endNodeAssigned boolean false optional

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.

isAnalyzeById boolean false optional

Whether to specify the waypoint through the node ID number, that is, specified by coordinates.

nodes Array.<(SuperMap.Geometry.Point|L.LatLng|L.Point|ol.geom.Point|number)>

A collection of delivery targets.

parameter SuperMap.TransportationAnalystParameter optional

The TransportationAnalystParameter class.

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.