Location issues

  • 3
  • Problem
  • Updated 1 year ago
There was some code that went out last week that caused some cities to have multiple returns.  We are going to look into that this week to figure out a solution.  I'm sorry for the inconvenience this has caused. 
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes

Posted 2 years ago

  • 3
Photo of Marmachine

Marmachine

  • 7 Posts
  • 0 Reply Likes
Thanks for bringing this up!
Does this explains why i don't have 'current_observation' in my json resonse?
I think this occurred since last thursday: 2017-03-16 19:50:03 (CET)
The below has been working for almost a year, 

My request: 
<b>http://api.wunderground.com/api/wuAPIkey/conditions/lang:NL/q/pws:IGELDERL218/NL/Harderwijk.json</b>

My response:

  "response": {
  "version":"0.1",
  "termsofService":"http://www.wunderground.com/weather/api/d/terms.html";,
  "features": {
  "conditions": 1
  }
, "results": [
{
"name": "Harderwijk",
"city": "Harderwijk",
"state": "GE",
"country": "NL",
"country_iso3166":"NL",
"country_name":"Nederland",
"zmw": "00000.6.06269",
"l": "/q/zmw:00000.6.06269"
}
,
{
"name": "Harderwijk",
"city": "Harderwijk",
"state": "NH",
"country": "NL",
"country_iso3166":"NL",
"country_name":"Nederland",
"zmw": "00000.8.06244",
"l": "/q/zmw:00000.8.06244"
}
]
}
}
(Edited)
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
If you're already calling by PWSID you don't need to add the rest.  This works on its own: 
http://api.wunderground.com/api/APIKEY/conditions/lang:NL/q/pws:IGELDERL218.json
Photo of Marmachine

Marmachine

  • 7 Posts
  • 0 Reply Likes
It's working like a charm again! Big thanks!
Photo of moater11

moater11

  • 49 Posts
  • 8 Reply Likes
Thanks for update. Any indication from WU on the fix ETA? This is causing serious issues for a lot of our locations of interest.
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 122 Reply Likes
List out your locations please?  That will help to debug different scenarios.
Photo of moater11

moater11

  • 49 Posts
  • 8 Reply Likes
An example would be
http://api.wunderground.com/api/KEY/forecast10day/hourly/q/romania/galati.xml
This location used to work last week, there are a lot more in Europe
another example
http://api.wunderground.com/api/KEY/forecast10day/hourly/q/romania/predeal.xml

Thanks
(Edited)
Photo of moater11

moater11

  • 49 Posts
  • 8 Reply Likes
An example would be
http://api.wunderground.com/api/KEY/forecast10day/hourly/q/romania/galati.xml
This location used to work last week, there are a lot more in Europe
another example
http://api.wunderground.com/api/KEY/forecast10day/hourly/q/romania/predeal.xml

Thanks
(Edited)
Photo of moater11

moater11

  • 49 Posts
  • 8 Reply Likes
Hi there, It's been 3 weeks now. What is the status of this fix: i.e. query by country/city name returning multiple cities instead of data. 
Thanks.
Photo of Mitchell Starkey

Mitchell Starkey

  • 1 Post
  • 0 Reply Likes
@moater11 Try testing for part of the data you need. If not there, take the 'L' part of one of the results and use that in a new request such as:
 http://api.wunderground.com/api/yourKey/conditions'+ data.response.results[0].l +'.json'
This is the only way I could get the information I needed.