if (FALSE) {
x <- aux_getFDSNstation(start = as.POSIXct(x = "2010-01-01 22:22:22",
tz = "UTC"),
centre = c(45, 10),
radius = 1)
## optionally plot station locations on a map (requires RgoogleMaps)
center <- c(mean(x$station_latitude),
mean(x$station_longitude))
zoom <- min(RgoogleMaps::MaxZoom(range(x$station_latitude),
range(x$station_longitude)))
Map <- RgoogleMaps::GetMap(center = center,
zoom = zoom,
maptype = "terrain")
RgoogleMaps::PlotOnStaticMap(MyMap = Map,
lat = x$station_latitude,
lon = x$station_longitude,
pch = 15,
col = 4)
}
Run the code above in your browser using DataLab