This repository contains the source code for an interactive app that displays real-time utilization of free parking spots for 4 public parking lots in city of Wroclaw, Poland.
The app is built using R and Shiny web framework (with shinydashboard package), utilizing an excellent JavaScript library Higcharts and its R wrapper - highcharter package.
Publicly available data from Wroclaw Open Data repository, updated every 5-10 minutes. The data is fetched from a CSV file containing the following information:
- timestamp (Czas_Rejestracji)
- number of available parking spots (Liczba_Wolnych_Miejsc)
- number of vehicles entering the parking lot (Liczba_Poj_Wjezdzajacych)
- number of vehicels leaving the parking lot (Liczba_Poj_Wyjezdzajacych)
- name of the parking lot (Nazwa)
head(read.csv2("http://www.wroclaw.pl/open-data/opendata/its/parkingi/parkingi.csv"))
Czas_Rejestracji Liczba_Wolnych_Miejsc Liczba_Poj_Wjezdzajacych Liczba_Poj_Wyjezdzajacych Nazwa
1 2016-11-03 00:00:00.020 279 1 0 Nowy Targ
2 2016-11-03 00:00:01.383 119 0 0 ul. sw. Antoniego
3 2016-11-03 00:00:01.943 791 0 0 Parking Hala Stulecia
4 2016-11-03 00:05:00.017 279 0 0 Nowy Targ
5 2016-11-03 00:05:01.190 119 0 0 ul. sw. Antoniego
6 2016-11-03 00:05:01.427 791 0 0 Parking Hala Stulecia
To run the app locally you should install required packages: shiny, shinydashboard, and highcharter in R, for example:
if (!require('shiny')) install.packages("shiny")
and use the function runGithub()
with specified repository name under my username:
shiny::runGitHub("Parking", "holek10")
Once the app is loaded the dashboard is presented (Przeglad).
Click Dane to see data overview.
The app is provided for free under GNU General Public License