get_EcoCounter_location: Get location from an EcoCounter installation

Description Usage Arguments Value Function version Author(s) Examples

View source: R/get_EcoCounter_location.R

Description

Get location from an EcoCounter installation

Usage

1

Arguments

EcoCounterId

character or integer or vector of character or integer: Id of the EcoCounter installation

Value

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.

Function version

0.0.1

Author(s)

Johannes Friedrich

Examples

 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)

JohannesFriedrich/EcoCounteR documentation built on June 16, 2020, 11:41 p.m.