Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Geometry ¶
type Geometry struct { GeomType string `json:"type" clover:"type"` Coordinates []float64 `json:"coordinates" clover:"coordinates"` }
func (*Geometry) AsGeomCoord ¶
func (geometry *Geometry) AsGeomCoord() geom.Coord
func (*Geometry) AsPipPolygon ¶
func (geometry *Geometry) AsPipPolygon() *pip.Polygon
type MapObject ¶
type MapObject struct { // These Properties are a hack to make the UI work. We should probably // have a view model or something but I am lazy and tired Id string `json:"id"` Type string `json:"type"` //Normal stuff below Geometry Geometry `json:"geometry" clover:"geometry"` Name string `json:"name" clover:"name"` Description string `json:"description" clover:"description"` Category string `json:"category" clover:"category"` Tags []string `json:"tags" clover:"tags"` Date time.Time `json:"date" clover:"date"` AccountId string `json:"account_id" clover:"account_id"` }
func (*MapObject) GetCategoryEmoji ¶
func (*MapObject) GetDateString ¶
Click to show internal directories.
Click to hide internal directories.