Using Mapbox API, its provide detailed info about the weather in the entered location.
There is two functions that perform dealing with the api:
geocode
: To get the exact longitude and latitude of the entered location and pass them to the second functionforecast
: To get the information about the given location and we get onlycurrent.temperature
and the first item incurrent.weather_descriptions
array
-
required node and npm
-
open the folder in terminal on terminal run :
$npm install
$node app.js #location