Question

I'm building a Weather class that is allowed to search by IP address. I am trying to implement the Wunderground API as one of the options to use. But, I can't seem to find a way to query the API with an IP address. I've tried this: autocomplete.wunderground.com/aq?query={IP ADDRESS HERE} -- but as you can see, it finds no results. Any tips on going about this problem?

Thanks!

Was it helpful?

Solution

Try http://api.wunderground.com/api/Your_Key/forecast/geolookup/conditions/q/autoip.json?geo_ip=Your_IP, instead.

See link for more details: http://www.wunderground.com/weather/api/d/docs?d=data/index.

OTHER TIPS

I suggest you use the World Weather Online API instead. It's easy to use, with a publicly facing JSON response that's easy to parse. All you need is to provide your API key with each query and it supports IP Address query, Latitude, Longitude, Locale name and others. Try it out man. Find it here HERE

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top