mapobject

package
v0.0.0-...-670d40f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2024 License: MIT Imports: 3 Imported by: 0

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 *MapObject) GetCategoryEmoji() string

func (*MapObject) GetDateString

func (m *MapObject) GetDateString() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL