metar

package
v0.0.0-...-cb77e8e Latest Latest
Warning

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

Go to latest
Published: Oct 7, 2019 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Overview

Package metar provides weather using the METAR API from the NOAA Aviation Digital Data Service, available at https://www.aviationweather.gov/.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

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

Config represents NOAA ADDS configuration from which a weather.Provider can be built.

func Station

func Station(station string) *Config

Station creates a configuration for the given airport code (e.g. KSEA).

func (*Config) Build

func (c *Config) Build() weather.Provider

Build builds a weather provider from the configuration.

func (*Config) IncludeFlightCat

func (c *Config) IncludeFlightCat() *Config

IncludeFlightCat adds flight category to the description.

func (*Config) StripRemarks

func (c *Config) StripRemarks() *Config

StripRemarks strips remarks from the description.

Jump to

Keyboard shortcuts

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