get_multiple_cities: get current weather data for multiple cities

Description Usage Arguments Value Examples

View source: R/OpenWeatherMap.R

Description

get current weather data for multiple cities

Usage

1
2
get_multiple_cities(api_key, bbox = NA, coordinates = NA, count = NA,
  cityIDs = NA, cluster = "yes", units = "metric")

Arguments

api_key

Open weather map API key

bbox

bounding box [lat of the top left point, lon of the top left point, lat of the bottom right point, lon of the bottom right point, map zoom]

coordinates

(lat,lon) coordinates of the location of your interest

count

number of cities around the point that should be returned

cityIDs

city IDs

cluster

use server clustering of points. Possible values are [yes, no]

units

metric units

Value

data frame giving current weather data for several locations

Examples

1
2
3
4
## Not run: 
data=get_multiple_cities(api_key,cityIDs =c(524901,703448,2643743))

## End(Not run)

ROpenWeatherMap documentation built on May 2, 2019, 9:21 a.m.