Can't get forecast for Ukraine cities

  • 1
  • Problem
  • Updated 4 years ago
Can't get forecast for Ukraine cities

I am using this request http://api.wunderground.com/api/MY_KE...

and getting such response:

{
"response": {
"version":"0.1",
"termsofService":"http://www.wunderground.com/weather/a...",
"features": {
"forecast": 1
}
, "results": [
{
"name": "Kiev",
"city": "Kiev",
"state": "",
"country": "UR",
"country_iso3166":"UA",
"country_name":"Ukraine",
"zmw": "00000.8.33345",
"l": "/q/zmw:00000.8.33345"
}
,
{
"name": "Kiev",
"city": "Kiev",
"state": "",
"country": "UR",
"country_iso3166":"UA",
"country_name":"Ukraine",
"zmw": "00000.11.33345",
"l": "/q/zmw:00000.11.33345"
}
]
}
}

So there is no weather information.
For other countries seems to be working fine.
Photo of Eugene11

Eugene11

  • 1 Post
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of WunderWilliam

WunderWilliam

  • 267 Posts
  • 18 Reply Likes
It looks like Kiev has a duplicate entry. You can get around that by either calling the lat / long, or using the location ("l") return in either one of the two listings.

So you'd use this:

http://api.wunderground.com/api/MY_KE...