Skip to content

Instantly share code, notes, and snippets.

View timvanachte's full-sized avatar

Tim Van Achte timvanachte

View GitHub Profile
@mhermans
mhermans / ghent_sheep_map.R
Last active June 26, 2020 13:35
Map live Ghent sheep location
# API docs Real time locatie schapen Gent
# https://data.stad.gent/explore/dataset/sheep-tracking-gent/information/
library(httr)
library(leaflet)
library(lubridate)
sheep_data <- content(GET('https://data.stad.gent/api/records/1.0/search/?dataset=sheep-tracking-gent'))$records[[1]]
leaflet() %>% addTiles() %>% addMarkers(
lng = sheep_data$geometry$coordinates[[1]],