Weather outside USA

  • 1
  • Question
  • Updated 6 years ago
I want Weather conditions for Brasilia, Brazil? Is it possible. Or wunderground works only for united States? The api request doesnt seem to work.

api.wunderground.com/api/{key}/forecast/lang:BR/q/Brazil/Brasilia.xml
Photo of rppsys

rppsys

  • 5 Posts
  • 0 Reply Likes

Posted 6 years ago

  • 1
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
Not an API issue /q/Brazil/Brasilia.xml returns multiple results.

You have to handle each of them and fetch the data you want using the zmw "scheme"
Photo of rppsys

rppsys

  • 5 Posts
  • 0 Reply Likes
First, thanks for the reply.
But, could you give a example or any documentation links? How do I use this so called zmw "scheme" .

How do I get weather forecast conditiuons for zmw:00000.1.83378, for example?

Thanks in advance!
Photo of rppsys

rppsys

  • 5 Posts
  • 0 Reply Likes
I believe I got it.
Here is the answer for people who have the same problem:

http://api.wunderground.com/api/xxxxx...
Photo of afelicioni

afelicioni

  • 227 Posts
  • 43 Reply Likes
Yes, it is the right way to query the API

Since the documentation in very thin, you can meet a reference about this case only at http://www.wunderground.com/weather/a... and you may see as it happens in action when querying the ordinary way and you get two or more results for an ambiguous query.

For this reason, I believe by using a zmw query you shall always get unambiguous results.