geo

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 22, 2020 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DEGREES_TO_RADIANS = math.Pi / 180.0
)

* Mathematical constants.

Variables

This section is empty.

Functions

This section is empty.

Types

type GeoJSON

type GeoJSON interface {
	LocationAt(idx int) (Location, error)
	LocationCount() int
}

* Top-level GeoJSON element.

func FromBytes

func FromBytes(data []byte) (GeoJSON, error)

* Create GeoJSON structure from byte slice.

type Location

type Location interface {
	Coordinates() coordinates.Geographic
	Optimize() Location
	Projected() coordinates.Cartesian
	Timestamp() uint64
}

* A location in GeoJSON representation.

Jump to

Keyboard shortcuts

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