Closed JanC closed 5 years ago
Oh wow that report is inconsistent. I was hoping to not make two calls, but clearly data accuracy is more important. Yeah I'll be sure to simplify that handling function.
f39e261 removed the code referencing the report fetched from GeoNames using only the station as though it was supplied by the user.
thanks!
Hi @flyinactor91 👋 I noticed that the api.geonames.org services randomly returns outdated metar when querying by coordinates.
Here are two consecutive calls with the same parameters with different results. The correct one is the 1st one (
210920Z
)This happens quite sporadically.
Have you had issues with that before? I wonder if it would be better to always query the aviationweather.gov service for the actual report and use geonames.org to only to get the station name and discard its returned report here
https://github.com/avwx-rest/AVWX-API/blob/8d21e3e89acb61c98fcd20bae1a650e2b861985b/avwx_api/handle/metar.py#L123
cheers