1.0.0 • Published 3 years ago

@alisherbegmatov/weather-api v1.0.0

Weekly downloads
-
License
ISC
Repository
github
Last release
3 years ago

Weather API

npm NPM GitHub repo size GitHub issues

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.

  1. getWeatherByZip() allows searching by zip code.
  • (params) are:
  • zip: A 5 digit USA based zip code
  • apiKey: 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'
  1. getWeatherByCity() allows searching by city name.
  • params are:
  • city: City Name
  • apiKey: Your API Key
  • units
  1. getWeatherByGeo() allows searching with Latitude & Longitude.
  • params are:
  • lat: Latitude
  • lon: Longitude
  • apiKey: Your API Key
  • units