No weather for Osaka, Japan (and a few other Japanese places)

  • 1
  • Problem
  • Updated 7 years ago
I can't get weather information for Osaka, Sapporo, Hokkaido, or a few other Japanese places. I can get Tokyo weather fine:

Tokyo:
http://api.wunderground.com/api/KEY/g...

Osaka:
http://api.wunderground.com/api/KEY/g...

I tried the Osaka airport code too (KIX). Still couldn't get any weather information.

Any ideas?

Jon

Here is the response to the Osaka request:

{
"response": {
"version": "0.1",
"termsofService": "http://www.wunderground.com/weather/a...,
"features": {
"geolookup": 1,
"conditions": 1,
"forecast": 1
},
"results": [
{
"name": "Osaka",
"city": "Osaka",
"state": "",
"country": "JP",
"country_iso3166": "JP",
"country_name": "Japan",
"zmw": "00000.1.47773",
"l": "/q/zmw:00000.1.47773"
},
{
"name": "Osaka",
"city": "Osaka",
"state": "",
"country": "JP",
"country_iso3166": "JP",
"country_name": "Japan",
"zmw": "00000.1.47772",
"l": "/q/zmw:00000.1.47772"
}
]
}
}
Photo of Jonathan Waller

Jonathan Waller

  • 2 Posts
  • 0 Reply Likes
  • confused

Posted 7 years ago

  • 1
Photo of Matthew Gregory

Matthew Gregory

  • 13 Posts
  • 1 Reply Like
You received an 'ambiguous request' response:
http://www.wunderground.com/weather/a...

You got this because there is a duplicate in our database, for Osaka. We will fix that.

As for the airport code question: Use the 4 letter code.
OR you need to specify the iata 3 letter format of codes by ..../q/iata:{3 letter code}
Photo of Jonathan Waller

Jonathan Waller

  • 2 Posts
  • 0 Reply Likes
Airport codes work great! Thanks! :)