zoomearth

package
v1.0.33 Latest Latest
Warning

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

Go to latest
Published: Nov 14, 2024 License: MIT Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	DefaultTimeout    = 2 * time.Minute
	DefaultColorDepth = 5000
)

Functions

func ConvertTracks

func ConvertTracks(src []track) (tracks []storm.Track)

func GetStorms added in v1.0.16

func GetStorms(t time.Time) (storms []storm.Storm, err error)

func Map added in v1.0.22

func Map(path string, dt time.Time, coords coordinates.Coordinates, opt *MapOptions) (t time.Time, img image.Image, err error)

func Realtime added in v1.0.16

func Realtime(path string, coords coordinates.Coordinates, opt *MapOptions) (time.Time, image.Image, error)

func URL added in v1.0.16

func URL(path string, t time.Time, coords coordinates.Coordinates, zoom float64, overlays []string) string

Types

type MapOptions added in v1.0.16

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

func NewMapOptions added in v1.0.16

func NewMapOptions() *MapOptions

func (MapOptions) Overlays added in v1.0.16

func (o MapOptions) Overlays() []string

func (*MapOptions) SetOverlays added in v1.0.17

func (o *MapOptions) SetOverlays(overlays []string) *MapOptions

func (*MapOptions) SetSize added in v1.0.17

func (o *MapOptions) SetSize(width int, height int) *MapOptions

func (*MapOptions) SetTimeZone added in v1.0.17

func (o *MapOptions) SetTimeZone(timezone *time.Location) *MapOptions

func (*MapOptions) SetZoom added in v1.0.17

func (o *MapOptions) SetZoom(zoom float64) *MapOptions

func (MapOptions) Size added in v1.0.17

func (o MapOptions) Size() (int, int)

func (MapOptions) TimeZone added in v1.0.17

func (o MapOptions) TimeZone() *time.Location

func (MapOptions) Zoom added in v1.0.16

func (o MapOptions) Zoom() float64

type StormID

type StormID string

func (StormID) Data

func (id StormID) Data() (storm.Data, error)

func (StormID) URL

func (id StormID) URL() string

type ZoomEarthAPI

type ZoomEarthAPI struct{}

func (ZoomEarthAPI) GetStorms

func (ZoomEarthAPI) GetStorms(t time.Time) ([]storm.Storm, error)

func (ZoomEarthAPI) Map added in v1.0.22

func (ZoomEarthAPI) Realtime added in v1.0.16

func (api ZoomEarthAPI) Realtime(mt maps.MapType, coords coordinates.Coordinates, opt any) (time.Time, image.Image, error)

func (ZoomEarthAPI) URL added in v1.0.16

Jump to

Keyboard shortcuts

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