Description Usage Arguments Value Function version Author(s) Examples
View source: R/get_EcoCounter_location.R
Get location from an EcoCounter installation
1 | get_EcoCounter_location(EcoCounterId)
|
EcoCounterId |
character or integer or vector of character or integer: Id of the EcoCounter installation |
data.frame with parsed data from EcoCounter API. Coloumns: longitude, lattitude, name, id and idParent. This can be used as input in leaflet::leaflet, see example.
0.0.1
Johannes Friedrich
1 2 3 4 5 6 7 8 9 10 11 | EcoCounterId <- 100037011
location <- get_EcoCounter_location(EcoCounterId)
## Not run:
library(leaflet)
leaflet(location) %>%
addProviderTiles(providers$OpenStreetMap) %>%
addTiles() %>%
addMarkers(~long, ~lat, popup = ~htmltools::htmlEscape(name))
## End(Not run)
|
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.