Problem with astronomy API for London

  • 1
  • Problem
  • Updated 5 years ago
the request

http://api.wunderground.com/api/4f066...

does not return valid astronomy data today 09.01.2013, but seems to return the result of autocomplete API sorrounded by "astronomy" tag.

Any help?
Do you have the same response?

For other locations it works perfectly.

Thank you.
Andrea Castelli
Photo of Andrea Castelli

Andrea Castelli

  • 3 Posts
  • 0 Reply Likes

Posted 5 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
The country field is supposed to be country code, not country name. Try this, with UK instead of United Kingdom:

http://api.wunderground.com/api/4f066...
Photo of Andrea Castelli

Andrea Castelli

  • 3 Posts
  • 0 Reply Likes
Thank you,
but Autocomplete API returns GB instead of UK. Why?

What is the right way to handle the autocomplete API and the country code?

Thank you.
Andrea Castelli
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
I'd suggest using the country codes you expect. Using the "l" in the autocomplete will get you to the correct location, I'm not sure why we still use GB there.