No forecast data for Canada ?

  • 1
  • Problem
  • Updated 3 years ago
Hi,
i'm getting some queries from users who were getting data for Canadian locations but now getting nothing back..I've tried the following 

http://api.wunderground.com/api/<apikey>/forecast/q/CA/Vancouver.json

and also get no forecast back...however with the same apikey

http://api.wunderground.com/api/<apikey>/forecast/q/CA/San_Francisco.json

works fine..

has something changed in the coverage ?

thanks,
Ant.
Photo of Antony Cook

Antony Cook

  • 2 Posts
  • 0 Reply Likes

Posted 3 years ago

  • 1
Photo of Tim Roche

Tim Roche, Official Rep

  • 318 Posts
  • 29 Reply Likes
Hi,

The reason you aren't getting data back is you are getting 2 cities matching vancouver.
Outside the US we use whole country names, not 2 letter abbreviations.

This is explained somewhat poorly on this page.
http://www.wunderground.com/weather/api/d/docs?d=data/geolookup

sorry for the confusion
Photo of Antony Cook

Antony Cook

  • 2 Posts
  • 0 Reply Likes
thanks Tim, vancouver probably a bad example then ! He was in Moncton and said it was working for a month then suddenly stopped..not sure what he had in originally but "Moncton, Canada" does work now at least.
Photo of Tim Roche

Tim Roche, Official Rep

  • 318 Posts
  • 29 Reply Likes
Glad its resolved.  Please let us know if you see problems arise in the future