domain

package
v0.0.0-...-8a4ed4b Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2024 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	SundsvallAnlaggningPrefix string = "se:sundsvall:facilities:"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Beach

type Beach struct {
	ID               string
	Name             string
	Description      string
	Geometry         MultiPolygon
	WikidataID       *string
	NUTSCode         *string
	SensorID         *string
	WaterTemperature *float64
	DateCreated      time.Time
	DateModified     time.Time
}

Beach contains a point of interest of type Beach

type ExerciseTrail

type ExerciseTrail struct {
	ID               string
	Name             string
	Description      string
	Annotations      *string
	Category         []string
	Length           float64
	Width            float64
	ElevationGain    float64
	AreaServed       string
	PublicAccess     string
	Geometry         LineString
	Status           string
	DateCreated      time.Time
	DateModified     time.Time
	DateLastPrepared time.Time
	Source           string
	Difficulty       float64
	PaymentRequired  bool
	SeeAlso          []string
	ManagedBy        string
	Owner            string
}

ExerciseTrail contains a point of interest of type ExerciseTrail

type Feature

type Feature struct {
	ID         int64        `json:"id"`
	Properties FeatureProps `json:"properties"`
	Geometry   FeatureGeom  `json:"geometry"`
}

type FeatureCollection

type FeatureCollection struct {
	Type     string    `json:"type"`
	Features []Feature `json:"features"`
}

type FeatureGeom

type FeatureGeom struct {
	Type        string          `json:"type"`
	Coordinates json.RawMessage `json:"coordinates"`
}

type FeaturePropField

type FeaturePropField struct {
	ID    int64           `json:"id"`
	Value json.RawMessage `json:"value"`
}

type FeatureProps

type FeatureProps struct {
	Name      string          `json:"name"`
	Type      string          `json:"type"`
	Manager   *Organisation   `json:"manager,omitempty"`
	Owner     *Organisation   `json:"owner,omitempty"`
	Published bool            `json:"published"`
	Fields    json.RawMessage `json:"fields"`
	Created   *string         `json:"created,omitempty"`
	Updated   *string         `json:"updated,omitempty"`
	Deleted   *string         `json:"deleted,omitempty"`
}

type LineString

type LineString struct {
	Lines [][]float64
}

type MultiPolygon

type MultiPolygon struct {
	Lines [][][][]float64
}

type Organisation

type Organisation struct {
	OrganisationID int    `json:"organizationID"`
	Name           string `json:"name"`
}

type SportsField

type SportsField struct {
	ID               string
	Name             string
	Description      string
	Category         []string
	PublicAccess     string
	Geometry         MultiPolygon
	DateCreated      time.Time
	DateModified     time.Time
	DateLastPrepared time.Time
	Source           string
	SeeAlso          []string
	ManagedBy        string
	Owner            string
}

SportsField contains a point of interest of type SportsField

type SportsVenue

type SportsVenue struct {
	ID           string
	Name         string
	Description  string
	Category     []string
	PublicAccess string
	Geometry     MultiPolygon
	DateCreated  time.Time
	DateModified time.Time
	Source       string
	SeeAlso      []string
	ManagedBy    string
	Owner        string
}

SportsVenue contains a point of interest of type SportsVenue

Jump to

Keyboard shortcuts

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