get_multiple_cities {ROpenWeatherMap} | R Documentation |
get current weather data for multiple cities
Description
get current weather data for multiple cities
Usage
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
## Not run:
data=get_multiple_cities(api_key,cityIDs =c(524901,703448,2643743))
## End(Not run)
[Package ROpenWeatherMap version 1.1 Index]