项目作者: jlouiss

项目描述 :
Weather app using a geolocation api and a weather api
高级语言: JavaScript
项目地址: git://github.com/jlouiss/weather-app.git
创建时间: 2017-02-09T20:37:35Z
项目社区:https://github.com/jlouiss/weather-app

开源协议:

下载


Weather App

This app shows the current local weather.

The position (latitude and longitude) are detected through http://ip-api.com/json.
After retrieving the latitude and longitude I use the coordinates to get the weather condition through the OpenWeatherMap API.

This app was using navigator.geolocation and a promise to get the data. It was more accurate but it wasn’t working properly on some browsers.

I refactored the app to improve the readability and to use ip-api.com instead of navigator.geolocation and to learn some webpack2.