if (FALSE) {
## lat, long, radius
isd_stations_search(lat = 38.4, lon = -123, radius = 250)
x <- isd_stations_search(lat = 60, lon = 18, radius = 200)
if (requireNamespace("leaflet")) {
library("leaflet")
leaflet() %>%
addTiles() %>%
addCircles(lng = x$lon,
lat = x$lat,
popup = x$station_name) %>%
clearBounds()
}
## bounding box
bbox <- c(-125.0, 38.4, -121.8, 40.9)
isd_stations_search(bbox = bbox)
}
Run the code above in your browser using DataLab