notam

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 31, 2021 License: CC0-1.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NotamDateLayout string = "0601021504"
)

Refer to ICAO Annex 15 Appendix 6 A NOTAM date-time group use a ten-figure group, giving year, month, day, hours and minutes in UTC. This entry is the date-time at which the NOTAMN comes into force. In the cases of NOTAMR and NOTAMC, the date-time group is the actual date and time of the NOTAM origination. The start of a day shall be indicated by “0000”. The end of a day shall be indicated by “2359”. With the exception of NOTAMC, a date-time group indicating duration of information shall be used unless the information is of a permanent nature in which case the abbreviation “PERM” is inserted instead. If information on timing is uncertain, the approximate duration -Item C) - shall be indicated using a date-time group followed by the abbreviation “EST”. Any NOTAM which includes an “EST” shall be cancelled or replaced before the date-time specified in Item C).

Variables

This section is empty.

Functions

func NotamDateToTime

func NotamDateToTime(ndte string) time.Time

Converts the NOTAM date (yymmddhhmm) to date The Golang date parse is limited by the use of two-digit year. The function overcomes the limitation thanks the recognition of the current year.

Types

type GeoData

type GeoData struct {
	Latitude  float64 `json:"Latitude"`
	Longitude float64 `json:"Longitude"`
	Radius    int     `json:"Radius"`
}

type KeyFunc

type KeyFunc func() string

type Notam

type Notam struct {
	Id string `bson:"_id" json:"id,omitempty"`
	NotamReference
	GeoData
	Identifier string `json:"identifier"`
	Replace    string `json:"replace"`
	NotamCode  NotamCode
	FromDate   string
	ToDate     string
	Schedule   string
	Text       string
	LowerLimit string
	UpperLimit string
	Status     string
}

func NewNotam

func NewNotam() *Notam

type NotamCode

type NotamCode struct {
	Fir         string `json:"fir"`
	Code        string `json:"code"`
	Traffic     string `json:"traffic"`
	Purpose     string `json:"purpose"`
	Scope       string `json:"scope"`
	LowerLimit  string `json:"lowerlimit"`
	UpperLimit  string `json:"upperlimit"`
	Coordinates string `json:"coordinates"`
}

type NotamList

type NotamList struct {
	sync.RWMutex
	Data map[string]NotamReference
}

func NewNotamList

func NewNotamList() *NotamList

type NotamReference

type NotamReference struct {
	Number       string `json:"number"`
	Icaolocation string `json:"icaolocation"`
	CountryCode  string `json:"countrycode"`
}

func (*NotamReference) GetKey

func (nr *NotamReference) GetKey() string

type NotamStatus

type NotamStatus struct {
	NotamReference
	Status string `json:"status"`
}

Jump to

Keyboard shortcuts

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