openweather-exporter icon indicating copy to clipboard operation
openweather-exporter copied to clipboard

Support IDs as an alternative to City, Country Format

Open r-netizen opened this issue 1 year ago • 2 comments

I think it would be great to simply allow an array of IDs

r-netizen avatar Dec 24 '23 22:12 r-netizen

Hey Netizen, i'm not sure what you mean by ID's here.

I use a Geo library (https://github.com/codingsince1985/geo-golang) to do the geo lookup for the coordinates to pass to the weather APIs to grab data. I'm not sure what an ID would quantify as in this case.

billykwooten avatar Mar 26 '24 22:03 billykwooten

I believe he's pointing out that openweathermap.org has a different ID for each city.

For example, there are three Jonestown, US cities. How should we specify which one we're interested in?

  • https://openweathermap.org/find?q=jonestown%2C+us
  • https://openweathermap.org/city/5195606
  • https://openweathermap.org/city/4701592
  • https://openweathermap.org/city/4432041

lukeyeager avatar Aug 01 '24 20:08 lukeyeager