chubin / wttr.in

:partly_sunny: The right way to check the weather
https://wttr.in
Apache License 2.0
24.01k stars 1.08k forks source link

wrong IATA airport code location #952

Open ler762 opened 5 months ago

ler762 commented 5 months ago

Use 3-letter airport codes in order to get the weather information at a certain airport: $ curl wttr.in/muc # Weather for IATA: muc, Munich International Airport, Germany $ curl wttr.in/ham # Weather for IATA: ham, Hamburg Airport, Germany

Which doesn't work for Ronald Reagan Washington National Airport ( IATA: DCA, ICAO: KDCA, FAA LID: DCA ), referred to colloquially as National Airport, Reagan, Reagan National, or simply DCA, is an international airport in Arlington County, Virginia, across the Potomac River from Washington, D.C.

$ curl wttr.in/dca Weather report: dca   <.. snip ..> Location: DCA, 1620, South Disneyland Drive, Anaheim Resort District, Anaheim, Orange County, California, 92802, United States of America [33.80639835,-117.919951333359]

but the 4-letter ICAO airport code does work:

$ curl wttr.in/kdca Weather report: kdca   <.. snip ..> Location: Ronald Reagan Washington National Airport, Thomas Avenue, Fort Barnard Heights, Arlington, Arlington County, Virginia, 22202, United States of America [38.8512154,-77.0396930556152]

ClariNerd617 commented 4 months ago

I have also been having this issue, where ASH returns some random city in Australia instead of Boire Field, but using the ICAO code KASH gets me some random place in Turkey.