nasr

package
v0.0.0-...-ed7ff26 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetCurrentCycle

func GetCurrentCycle(dt *time.Time) *time.Time

func GetFormattedDate

func GetFormattedDate(dt *time.Time) string

func GetNextCycle

func GetNextCycle(dt *time.Time) time.Time

func IsDateNewCycle

func IsDateNewCycle(dt *time.Time) bool

func ProcessAirports

func ProcessAirports() (map[string]Airport, error)

func URL

func URL(dt *time.Time, t string) string

Types

type Airport

type Airport struct {
	State              string  `csv:"STATE_CODE"`
	FAAID              string  `csv:"ARPT_ID"`
	ICAO               string  `csv:"ICAO_ID"`
	City               string  `csv:"CITY"`
	Name               string  `csv:"ARPT_NAME"`
	Latitude           float64 `csv:"LAT_DECIMAL"`
	Longitude          float64 `csv:"LONG_DECIMAL"`
	Elevation          float32 `csv:"ELEVATION"`
	MagnaticVariation  int     `csv:"MAG_VARN"`
	MagneticHemisphere string  `csv:"MAG_HEMIS"`
}

Jump to

Keyboard shortcuts

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