Learn R Programming

ROpenWeatherMap (version 1.1)

get_current_weather: get current weather data for one location

Description

get current weather data for one location

Usage

get_current_weather(api_key, cityID = NA, city = "", country = "", coordinates = NA, zip_code = NA)

Arguments

api_key
Open weather map API key
cityID
city ID
city
name of city
country
name of country
coordinates
(lat,lon) coordinates of the location of your interest
zip_code
zip code

Value

data frame giving current weather data for one location

Examples

Run this code
## Not run: 
# data=get_current_weather(api_key,city="guwahati")
# ## End(Not run)

Run the code above in your browser using DataLab