randallspicher / weather.noaa

Kodi weather plugin for NOAA (weather.gov)
GNU General Public License v2.0
1 stars 0 forks source link

UI: Use IATA Airport codes instead of Lat/Lon for stations #18

Open inMikeRotch opened 2 weeks ago

inMikeRotch commented 2 weeks ago

Hello.

Would it be possible to use IATA Airport codes instead of Lat/Lon coordinates. Internally, you could still use coordinates based on a lookup table of known airports. This data is publically accessible.

See: https://github.com/lxndrblz/Airports Source: https://raw.githubusercontent.com/lxndrblz/Airports/refs/heads/main/airports.csv

image

Thank you.

randallspicher commented 1 week ago

using a [rather large] csv file is not practical to include in the addon, and would get out-of-date. Are you aware of a free api which returns similar data by airports? (that means not requiring signing up for an account and api key)

I was able to add in a lookup by address (via the census.gov geolocation api) if that helps. (now in the omega beta repo) if your goal is to get your local weather forecast, (as opposed an airports weather) your local location will be more accurate, as the nearest airport may be miles away.

inMikeRotch commented 6 days ago

Hello. geoPlugin has a similar service up to ~120 requests/minute See: www.geoplugin.com/webservices