govpolygon

package
v0.0.0-...-e9a8072 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2024 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

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

func New

func New(gqlEndpoint string, updateIfNotExists bool) *Handler

func (*Handler) GetGeoJSON

func (h *Handler) GetGeoJSON(c echo.Context) error

func (*Handler) Route

func (h *Handler) Route(g *echo.Group) *Handler

func (*Handler) Update

func (h *Handler) Update(c echo.Context) error

type Processor

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

func NewProcessor

func NewProcessor(dirpath, key1, key2 string, simplifyTolerance float64) *Processor

func (*Processor) ComputeGeoJSON

func (p *Processor) ComputeGeoJSON(ctx context.Context, values []string, citycodem map[string]string) (*geojson.FeatureCollection, []string, error)

Jump to

Keyboard shortcuts

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