Class: TransferPathParameters

SuperMap.TransferPathParameters

Traffic transfer query parameter class

new SuperMap.TransferPathParameters(options)

TransferPathParameters.js, line 5
Name Type Description
options Object

The parameters.

Name Type Description
transferLines Array.<SuperMap.TransferLine>

The available transfer lines of this segment.

points Array.<(string|SuperMap.Geometry.Point|L.Point|L.LatLng|ol.geom.Point)>

There are two query ways: query by the start stop ID and Query by the start and the end stop coordinates.

Members

pointsArray.<(string|SuperMap.Geometry.Point|L.Point|L.LatLng|ol.geom.Point)>

There are two query ways:

      1. query by the start ID of the bus stop, the type of points parameter is int[], the format is [start point ID, end point ID], the ID of the bus stop is corresponding to the ID of the service provider configuration;
      2. Query by the coordinate of the start point, the type of the points parameter is Point2D[], in form of [{“x”:44,”y”:39},{“x”:45,”y”:40}].

transferLinesArray.<SuperMap.TransferLine>

The available transfer lines of this segment, They are saving in SuperMap.REST.TransferSolutionResult.

Methods

SuperMap.TransferPathParameters.toJson(params){string}

TransferPathParameters.js, line 46

Transform the SuperMap.TransferPathParameters class to JSON string.

Name Type Description
params SuperMap.TransferPathParameters

The TransferPathParameters class.

Returns:
Type Description
string The JSON string.

destroy()

TransferPathParameters.js, line 38

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