Closed jasonwryan closed 10 years ago
Actually, it will never return North-northwest
. However, it should be returning the degree heading (e.g., NNW is roughly 338°).
I believe I know what is causing this bug, and I'm working on tracking it down.
And, before you ask, I'm already going to implement a conversion specifier that will give you the cardinal/ordinal nomenclature rather than the degrees.
Thanks. The output on OWM is:
Gentle Breeze 5.16 m/s
North-northwest (345.504°)
So I just assumed that the wind direction was available as a string and by degree.
Thanks for chasing this up.
Sadly, no. Though OWM's web interface provides the text version, their API does not. I'll be implementing that by-hand (along with the AU) until/unless the OWM API sees fit to include it.
Fixed via ed7bd733ea
Including a query with a wind heading request (
%x
) just returns 0.It should return
North-northwest