Current Location Weather

0

In order to get the current location weather we need to use Geo-location of HTML5 supported browsers.

It will give ask you to allow access to your location, Click on allow

It will then get the latitude and longitude of the device.

Then it will call the Yahoo Api for the weather information and then provide you with the details

Below is the code:

Weather API JS:

 

Main Code:

 

 

 

Leave a Reply