Zipcodes that begin with zero

Issue #14 new
Chris Legge created an issue

I cant send any zipcodes that begin with zero thru to createWeatherForecas()

When you convert a valid zip like 07002 to int it comes out as 7002.

Would it be possible to change the signature to accept string so that i can send zip codes thru that start with zeros?

Comments (2)

  1. Ashutosh Kumar Singh repo owner

    Hi Chris, thanks for reporting this issue. Yes, it’s a bug.

    I will work on it in the next release. Thank you.

  2. Clinton Foster

    Same with currentWeatherByZipCode(). Perhaps the existing methods could be deprecated and new overloaded ones that accept String could be added?

  3. Log in to comment