Closed SmilingTexan closed 4 years ago
To clarify OpenWeatherMap recommends using the city id because using the city name sometimes causes issues since some cities show up more than once in the list (i.e. Kansas City). If you just use the city name they have to figure out which one you meant and return the results for that. I'm not 100% but I believe this happens because people can add their own weather stations in their homes to report data. I can only assume that when you add a new weather station like that it adds the city an additional time to the list.
I'm about to begin working on this. So it should be resolved shortly.
According to openweathermap, you should use the city ID instead of name to get a more exact match; I've modified the following functions to allow for this:
and