Sometimes my city query within Ireland is defaulting back to the USA , why

  • 1
  • Question
  • Updated 2 years ago
This query brings back 'New Ross, USA' info:
http://api.wunderground.com/api/XXXXXXXXXX/geolookup/conditions/q/Ireland/Wexford.json
The one below brings good info for Dubling Ireland which is fine
http://api.wunderground.com/api/XXXXXXXXXX/geolookup/conditions/q/Ireland/Dublin.json
How do I fix this please. Fix the top one to bring back for Wexford Ireland
Thank you
Photo of Charles Haughey

Charles Haughey

  • 2 Posts
  • 1 Reply Like

Posted 2 years ago

  • 1
Photo of Ravi Yadav

Ravi Yadav

  • 82 Posts
  • 9 Reply Likes
Charles, Wunderground doesn't have location info about Wexford, Ireland. The API tries to figure out what the user meant and pulls Wexford from PA. 

To solve your problem, you can either make a query by lat/lon or make an autocomplete lookup first and use that result. 

Ex: http://autocomplete.wunderground.com/aq?query=Wex

and then use the result for Wexford to make a query:
http://api.wunderground.com/api/APIKey/conditions/q/locid:EIXX0048;loctype:1.json
Photo of Charles Haughey

Charles Haughey

  • 2 Posts
  • 1 Reply Like
Hi Ravi,
Many thanks I'll look into those links. You were very fast in providing guidance,
Best wishes,
Charles