toGeoJson method

Map<String, dynamic> toGeoJson()

Implementation

Map<String, dynamic> toGeoJson() {
  return {
    "type": "Feature",
    "properties": toJson(false),
    "geometry": {
      "type": "LineString",
      "coordinates": geometry!.map((c) => c.toGeoJsonCoordinates()).toList()
    }
  };
}