Class: FindMTSPPathsParameters

SuperMap.FindMTSPPathsParameters

The FindMTSPPathsParameters class.

new SuperMap.FindMTSPPathsParameters(options)

FindMTSPPathsParameters.js, line 5
Name Type Description
options Object

The parameters.

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

The delivery destination set.

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

The distribution center set.

hasLeastTotalCost boolean false optional

Whether the delivery mode is the minimum costs scheme or not.

isAnalyzeById boolean false optional

Whether specifies the centers and the destinations according to the ID number, i.e. specifies according to the coordinates points.

parameter SuperMap.TransportationAnalystParameter optional

The TransportationAnalystParameter class.

Members

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

The distribution center set. When FindMTSPPathsParameters.isAnalyzeById = false, centers should be the coordinate array of the point; When FindPathParameters.isAnalyzeById = true, centers should be the ID array of the point.

hasLeastTotalCostboolean

Whether the delivery mode is the minimum costs scheme or not. If true, delivery goods according to the minimum costs scheme mode, and the situation that the some centers spend more while others spend less may come up; if false, it is the local optimum scheme. This scheme would control the costs of each center so that the costs of each center would be relatively even, but the total costs may not be the minimum.

isAnalyzeByIdboolean

Whether specifies the centers and the destinations according to the ID number, i.e. specifies according to the coordinates points.

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

The delivery destination set. When FindMTSPPathsParameters.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 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()

FindMTSPPathsParameters.js, line 62

Disposes the resource. The property that references resource is set to null.