Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Location ¶
type Location struct { Type string `json:"type" bson:"type"` Coordinates []float64 `json:"coordinates" bson:"coordinates"` }
Location is a GeoJSON type.
func NewLocation ¶
NewLocation returns a GeoJSON Point with longitude and latitude.
type Tree ¶
type Tree struct { ID primitive.ObjectID `json:"id,omitempty" bson:"_id"` TaggedBy string `json:"tagged_by,omitempty" bson:"tagged_by"` TaggedAt *time.Time `json:"tagged_at,omitempty" bson:"tagged_at"` Species string `json:"species" bson:"species"` Location *Location `json:"location" bson:"location"` }
Tree represents the attributes of a tree
Click to show internal directories.
Click to hide internal directories.