getCityId return 0 when querying by zip code
Issue #13
resolved
When using currentWeatherByZipCode()
, getCityId()
always return 0.
Not sure it if that's an API limitation or a bug.
Comments (3)
-
-
repo owner Hi Eric, thanks for reporting this issue. It’s not a bug, but a behavior of OWM APIs.
I tried multiple API calls as given below, but none of them returned a City ID. Thanks!
https://api.openweathermap.org/data/2.5/weather?zip=94040,US&appid=APP-ID https://api.openweathermap.org/data/2.5/weather?zip=M4P,CA&appid=APP-ID https://api.openweathermap.org/data/2.5/weather?zip=3000,AU&appid=APP-ID
-
repo owner - changed status to resolved
- Log in to comment
I created this issue, but for some reason wasn’t logged in.