Belize, Belize doesn't return weather data

  • 1
  • Problem
  • Updated 6 years ago
Hi -

When I try to get weather data for Belize, Belize, it doesn't return any info.

For example if I use the following API call:

http://api.wunderground.com/api/API KEY GOES HERE/conditions/q/Belize/Belize.json

"current_observation" is empty.

Note that Belize, Belize is returned by the autocomplete API. Also, if I look up Belize, Belize on the wunderground.com website, it shows weather data.

Trying to launch an app asap and sign up for the Cumulus plan soon, so a timely response would be greatly appreciated.

Thanks!
Photo of oringe

oringe

  • 15 Posts
  • 0 Reply Likes
  • anxious

Posted 6 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
For now use http://api.wunderground.com/api/KEY/c...

We are looking into the Belize, Belize problem, our site handles it a little differently.
Photo of oringe

oringe

  • 15 Posts
  • 0 Reply Likes
I discovered a few more cities that have the same error:

http://api.wunderground.com/api/KEY/c...

http://api.wunderground.com/api/KEY/c...
Photo of oringe

oringe

  • 15 Posts
  • 0 Reply Likes
(Any suggestions or solutions would be appreciated with those two cities)
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
What you're seeing is when we have 2 entries in our database for a location. Sometimes its an accident and we need to fix it, sometimes there's 2 locations reporting weather in the same city. The way to deal with this on your side is to recognize the data when there's an ambigious search like this, and then use the "l" field to make a new request, like this:
"l": "/q/zmw:00000.1.WKQTZ"

api.wunderground.com/api/KEY/conditions/q/zmw:00000.1.WKQTZ