-
-
Notifications
You must be signed in to change notification settings - Fork 1
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add Closest TAF #15
Comments
It looks like NWS's ADDS service has an endpoint that might be useful for this: https://aviationweather.gov/dataserver/example?datatype=taf#radialdist |
That looks like it will work. I will try to add it later this week. |
I have some capacity to take a whack at it myself too if you'd prefer. |
The backend shouldn't be too difficult. Give it a shot. My idea would be to add a new API endpoint. It takes a radial distance, latitude, longitude, and limit. It would call the NWS api for TAFs, process each and return them. The frontend will be modified to use this endpoint instead of the current one. |
That's pretty close to what I had envisioned too, though I was going to have the endpoint take an airport code instead of a lat/long. I planned on using the same API you're already using to look up runway information to get the airport coordinates. That felt more in line with how the other endpoints work, and keeps the client from needing to look up the airport coordinates. |
Yea that would work better for TAFs. I was thinking about providing the nearest airports for searching, which is the other issue. |
I got a good POC put together: https://github.com/speshak/WeatherVis/tree/nearby_taf |
Parsing the XML is a better strategy and less prone to errors. If we converted the XML to JSON then matched up the keys with the current json format that would be the least amount of work. I can do that today. It should dramatically simplify the project. |
Sounds good. I've also got an additional commit that switches over the METAR fetching to the ADDS XML as well, but it looks like I didn't push it. I'll get that pushed tonight. |
I added a conversion from XML json to the original JSON. It is in changeToXML. I also changed cloud data to be stored in a list instead of individual values. |
This issue has seen a wee bit of scope creep. 😕 |
I think we could improve this by showing the nearest 5 (or more) TAF reports for every airport. Above the TAF section could be a set of buttons corresponding to the airports that the user could click through. Was this what you were thinking? Or was this only for airports without TAFs? Also I added a Slack link to the readme, so we could chat without polluting issue discussions. |
#33 Finished issue. |
When you look up the weather for an airport that doesn't have a TAF, the TAF section is understandably blank. It would be nice for it to instead display the nearest TAF. Another option would be a way to select from several "nearby" TAFs and the user can determine which is most applicable to their use.
The text was updated successfully, but these errors were encountered: