First of all, is it possible to use the API in a Java application ? The code examples do not list Java.
Anyways, I was wondering if it was possible to combine GeoIP geolocation and Weather Underground in a stand-alone Java application to retrieve weather data.
The URL to be constructed looks like this:
http://api.wunderground.com/api/[API key here]/conditions/q/CA/San_Francisco.json
URLConnection class to get the information of the response?
1-
Yes you should be able to call it from a
Javaapplication and parse thejsonresponse2- You can specify the country/city in your query as following: