Referrer URL using Lat/Lon?

  • 1
  • Question
  • Updated 8 years ago
I retrieve weather forecast basted on lat/lon

e.g. For Toronto Canada, it would be{key}...

1) Is there a way to retrieve the City name when querying by Lat/Lon? The user may have supplied coordinates for a major city, or the middle of the Sahara desert; I have no way of knowing -- all I have is lat/lon values.

2) I have only limited space to present a small subset of the json result. I'd like to offer a link back to WU for more details/extended forecast, etc. How would I do this? I've tried{...
but that doesn't default user into the desired lat/lon forecast location.
Photo of ohwind


  • 1 Post
  • 0 Reply Likes

Posted 8 years ago

  • 1
Photo of Brendan Hayes

Brendan Hayes, Official Rep

  • 962 Posts
  • 124 Reply Likes
Include the /geolookup/ feature to get the city name, and the "l" value is the link to our site. Use the "l" value and append your apiref to make it go to the right location on our site and count towards your referrals.
Photo of Mark Maslar

Mark Maslar

  • 1 Post
  • 0 Reply Likes
BTW, that worked great! Thanks :-)
I'm using it for non-USA inquiries on the wind/concert finder: