iata

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 2, 2023 License: MIT Imports: 4 Imported by: 5

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	IATA_LARGE_AIRPORT_CODES []AirportCode = []AirportCode{}/* 607 elements not displayed */

	IATA_LARGE_AIRPORTS = map[AirportCode]Airport{}/* 607 elements not displayed */

)

IATA Airport codes (large airports only) https://ourairports.com/data/

Functions

This section is empty.

Types

type Airport

type Airport struct {
	Code    AirportCode
	Lat     float64
	Lon     float64
	Name    string
	Country iso.Country
	Region  iso.Region
}

type AirportCode

type AirportCode string
const (
	AirportCodeUndefined AirportCode = ""
)

func ParseAirportCode

func ParseAirportCode(c string) AirportCode

func (AirportCode) Airport

func (r AirportCode) Airport() Airport

func (AirportCode) IsValid

func (r AirportCode) IsValid() bool

func (AirportCode) MarshalText

func (r AirportCode) MarshalText() ([]byte, error)

Text/JSON conversion

func (*AirportCode) Scan

func (r *AirportCode) Scan(value interface{}) error

SQL conversion

func (AirportCode) String

func (c AirportCode) String() string

func (*AirportCode) UnmarshalText

func (r *AirportCode) UnmarshalText(data []byte) error

func (AirportCode) Value

func (r AirportCode) Value() (driver.Value, error)

Jump to

Keyboard shortcuts

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