@alisherbegmatov/weather-api
v1.0.0
Published
![npm](https://img.shields.io/npm/v/@alisherbegmatov/date-lib) ![NPM](https://img.shields.io/npm/l/@alisherbegmatov/date-lib) ![GitHub repo size](https://img.shields.io/github/repo-size/alisherbegmatov/date-lib) ![GitHub issues](https://img.shields.io/git
Downloads
3
Readme
Weather API
Description
A library that can be used by anyone who wants to use the OpenWeatherMap API in any project they might create.
this repository is powered by Open Weather Map API.
getWeatherByZip()
allows searching by zip code.
(params)
are:zip
: A 5 digit USA based zip codeapiKey
: You will need to input your own API Key for your project.units
: No entry will default to 'imperial', but options are 'metric' or 'kelvin'
getWeatherByCity()
allows searching by city name.
params
are:city
: City NameapiKey
: Your API Keyunits
getWeatherByGeo()
allows searching with Latitude & Longitude.
params
are:lat
: Latitudelon
: LongitudeapiKey
: Your API Keyunits