Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Feature ¶
type Feature struct {
Properties map[string]interface{} `json:"properties"`
Geometry interface{} `json:"geometry"`
Type Type `json:"type"`
}
Feature description
func NewFeature ¶
NewFeature creates a Feature from given geometry and properties
type FeatureCollection ¶
FeatureCollection description
func NewFeatureCollection ¶
func NewFeatureCollection(features []Feature) FeatureCollection
NewFeatureCollection creates a FeatureCollection from given features
type Position ¶
Position description
func NewPosition ¶
NewPosition creates a new position
func (Position) MarshalJSON ¶
MarshalJSON marshals the position as an array
func (*Position) UnmarshalJSON ¶
UnmarshalJSON unmarshal Position
type Type ¶
type Type string
Type is a type of GeoJSON Object
const ( // TypeFeatureCollection as defined in https://datatracker.ietf.org/doc/html/rfc7946#section-1.4 TypeFeatureCollection Type = "FeatureCollection" // TypeFeature as defined in https://datatracker.ietf.org/doc/html/rfc7946#section-1.4 TypeFeature Type = "Feature" // TypePoint as defined in https://datatracker.ietf.org/doc/html/rfc7946#section-1.4 TypePoint Type = "Point" )
Click to show internal directories.
Click to hide internal directories.