geojson

package
v0.0.0-...-7b3a9c7 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2019 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Feature

type Feature struct {
	ID         interface{}
	Properties map[string]interface{}
	Geometry   interface{}
	Precision  int
}

Feature represents a GeoJSON Feature object.

func (*Feature) MarshalJSON

func (f *Feature) MarshalJSON() ([]byte, error)

func (*Feature) UnmarshalJSON

func (f *Feature) UnmarshalJSON(data []byte) error

type FeatureCollection

type FeatureCollection struct {
	Features []*Feature
}

FeatureCollection represents a GeoJSON FeatureCollection object.

func (*FeatureCollection) MarshalJSON

func (fc *FeatureCollection) MarshalJSON() ([]byte, error)

func (*FeatureCollection) UnmarshalJSON

func (fc *FeatureCollection) UnmarshalJSON(data []byte) error

Jump to

Keyboard shortcuts

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