https://github.com/joeshaw/iata
CLI tool to print info on airports given IATA or ICAO codes
https://github.com/joeshaw/iata
airports cli golang iata iata-codes icao icao-codes
Last synced: 8 months ago
JSON representation
CLI tool to print info on airports given IATA or ICAO codes
- Host: GitHub
- URL: https://github.com/joeshaw/iata
- Owner: joeshaw
- License: mit
- Created: 2017-10-12T02:47:33.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2023-04-25T21:22:03.000Z (over 2 years ago)
- Last Synced: 2024-12-18T08:14:45.885Z (10 months ago)
- Topics: airports, cli, golang, iata, iata-codes, icao, icao-codes
- Language: Go
- Homepage:
- Size: 13 MB
- Stars: 4
- Watchers: 3
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
This is a dumb CLI tool which prints out airport info given an IATA
or ICAO code.Don't look at the code. It's gross.
## Install
go get github.com/joeshaw/iata
## Usage
$ iata LAX KIAD FRA sjc CMH BOS BUTT
LAX (KLAX) - Los Angeles International Airport (Los Angeles, CA, US)
IAD (KIAD) - Washington Dulles International Airport (Washington, DC, VA, US)
FRA (EDDF) - Frankfurt am Main Airport (Frankfurt am Main, DE)
SJC (KSJC) - Norman Y. Mineta San Jose International Airport (San Jose, CA, US)
CMH (KCMH) - John Glenn Columbus International Airport (Columbus, OH, US)
BOS (KBOS) - General Edward Lawrence Logan International Airport (Boston, MA, US)
BUTT - not found## Airport data
Airport data comes from https://github.com/datasets/airport-codes.
The airports.csv file is copied into the `tools` subdirectory.
Running `go generate .` from the toplevel directory will regenerate
the Go file containing the airport data from it.## License
MIT