getCityId return 0 when querying by zip code

Issue #13 resolved
Former user created an issue

When using currentWeatherByZipCode(), getCityId() always return 0.

Not sure it if that's an API limitation or a bug.

Comments (3)

  1. Ashutosh Kumar Singh 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
    

  2. Log in to comment