Skip to content

Commit af97810

Browse files
Merge pull request #17 from crazycapivara/develop
find cities by bbox
2 parents 6f05c8f + ba67fcc commit af97810

39 files changed

+292
-61
lines changed

DESCRIPTION

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
Package: owmr
22
Title: OpenWeatherMap API Wrapper
3-
Version: 0.8.0
3+
Version: 0.8.1
44
Date: 2018-11-02
55
Authors@R: c(
66
person("Stefan", "Kuethe", email = "crazycapivara@gmail.com", role = c("aut", "cre")),

NAMESPACE

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ export("%>%")
99
export(add_owm_tiles)
1010
export(add_weather)
1111
export(cbind_weather)
12+
export(find_cities_by_bbox)
1213
export(find_cities_by_geo_point)
1314
export(find_city)
1415
export(flatten)

NEWS.md

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
# owmr 0.8.1
2+
3+
* Added function `find_cities_by_bbox` to get current weather data for a number of cities
4+
within a given bounding box
5+
16
# owmr 0.8.0
27

38
* Added generic function `owmr_as_tibble` to get similiar-ish and tidy data frames
@@ -26,7 +31,7 @@ _owm stations api_
2631
# owmr 0.7.0
2732

2833
* Added functions to add owm tiles to leaflet map.
29-
- Note: Performance of owm tile server seems to be low.
34+
* Note: Performance of owm tile server seems to be low.
3035

3136
# owmr 0.6.1
3237

@@ -47,7 +52,7 @@ _owm stations api_
4752

4853
* Added function to search owm's city list by city name.
4954
* Added tests for current data.
50-
- Added helper function to fetch 'fresh' data used in tests.
55+
* Added helper function to fetch 'fresh' data used in tests.
5156

5257
# owmr 0.3.0
5358

R/current-bbox.R

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,14 @@
1-
find_cities_by_bbox <- function(bbox = c(12,32,15,37,10), ...) {
1+
#' Find cities by bounding box.
2+
#'
3+
#' Get current weather data for a number of cities
4+
#' within a given bounding box.
5+
#'
6+
#' @param bbox bounding box, numric vector of the form
7+
#' (lon-left, lat-bottom, lon-right, lat-top, zoom)
8+
#' @param ... see \url{https://openweathermap.org/current}
9+
#'
10+
#' @export
11+
find_cities_by_bbox <- function(bbox = c(12, 32, 15, 37, 10), ...) {
212
get <- owmr_wrap_get("box/city")
313
get(bbox = paste0(bbox, collapse = ","), ...) %>%
414
owmr_parse() %>%

docs/LICENSE-text.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/articles/owmr.html

Lines changed: 38 additions & 24 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/authors.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/index.html

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/news/index.html

Lines changed: 10 additions & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)