geomap

package
v2.0.7 Latest Latest
Warning

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

Go to latest
Published: Mar 11, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Point

func Point(lat float64, long float64) orb.Point

Types

type Map

type Map struct {
	// contains filtered or unexported fields
}

func NewMap

func NewMap(GeoFile string) (Map, error)

func (*Map) IsInside

func (m *Map) IsInside(point orb.Point) (Property, bool)

isPointInsidePolygon runs through the MultiPolygon and Polygons within a feature collection and checks if a point (long/lat) lies within it.

type Property

type Property struct {
	Latitude  float64 `json:"lat"`
	Longitude float64 `json:"long"`
	NameEN    string  `json:"name"`
	NameTH    string  `json:"thname"`
}

Jump to

Keyboard shortcuts

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