Skip to content

GuaciG/local-weather-app

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Local Weather App.

Local Weather App

Local Weather App Using the Geolocation API.

  • Check if Geolocation is supported in your browser.

  • If supported, run the getCurrentPosition() method. If not, a message will be displayed.

  • If the getCurrentPosition() method is successful, it returns a coordinates object to the function specified in the parameter (showPosition).

  • The showPosition() function outputs your Latitude and Longitude.

  • Your location will be used to request specific information of the weather to the OpenWeatherMap API.

You can take a look at this project in github

Also you can find the working demo in codepen

Feedback issues etc. are more than welcome! Thanks!