api

package
v0.0.0-...-cd4b7ff Latest Latest
Warning

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

Go to latest
Published: Mar 6, 2026 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HeightMapGenerator

type HeightMapGenerator interface {
	GetTileHeightmap(z, x, y, resolution int) ([]byte, error)
	CreateHeightMapImage(lat, lon float64, side float64, conf heightmap.ResolutionConfig) ([]byte, error)
	GetPointsElevations(points []heightmap.Point) []heightmap.Point
	GenerateAllTilesInZoomLevel(zoomLevel int)
}

type HttpApi

type HttpApi struct {
	Router         *chi.Mux
	HeightmapGen   HeightMapGenerator
	BasePath       string
	AllowedOrigins []string
}

func (HttpApi) Run

func (a HttpApi) Run(port int) error

Jump to

Keyboard shortcuts

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