GeoJSONLineString constructor

GeoJSONLineString(
  1. List<List<double>> coordinates
)

Constructs a GeoJSONLineString from the provided list of coordinates.

Implementation

GeoJSONLineString(this.coordinates)
    : assert(coordinates.length >= 2,
          'The coordinates MUST be two or more positions');