get_stations_info_from | R Documentation |
Obtain info and metadata for the available stations in the different services
get_stations_info_from(
service = c("aemet", "meteocat", "meteoclimatic", "meteogalicia", "ria"),
options
)
service |
Character with the service name (in lower case). |
options |
List with the needed service options. See |
Depending on the service the metadata available can be different. Also, some services only offer
info for active stations (i.e. AEMET), not historical stations, so some mismatch can occur between
the stations returned by this function and the stations returned by get_meteo_from
for
historical dates.
An sf (spatial) object with the stations metadata.
To avoid unnecessary API calls (especially in rate-limited APIs), results are cached to
memory in a cache_mem
object. This cache is limited to the actual
R session and invalidates after 24h.
This cache can be cleared with clear_meteospain_cache
.
library(meteospain)
library(keyring)
# AEMET (we need a key)
# key_set('aemet')
api_options <- aemet_options(api_key = key_get('aemet'))
get_stations_info_from('aemet', api_options)
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.