toJson method

List<List<double>> toJson()

Retourne les coordonnées au format GeoJSON : [lon, lat, lon, lat, ...]

Implementation

List<List<double>> toJson() {
  return points.map((point) => [point.longitude, point.latitude]).toList();
}