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