toGeoJson method

Map<String, dynamic> toGeoJson()

Implementation

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