Paris OpenData Trilib

Shiny app Pitch

jnabonne
2018/12/22

About this project

This project is based and made possible thanks to Paris OpenData (website: opendata.paris.fr)

Ecology recently became, at last, a trendy topic in France.
In order to help citizens to participate in this global challenge, the idea of this Shiny app is to offer a quick way to localize and identify empty Trilib recycling stations where to dispose their trash.

As some information are quite volatile (eg. stations filling rate), and to ensure the utility of this tool, the dataset is download each time the application is initiated (given the very small size of the dataset, ~ 50KB, this will not delay much the launch).

Interacting with the map

Users can use the filters provided on the left part to refine the stations selection (on current version, filter by trash type only)

interface

Note: to better see filters' action, they desactivate stations clustering

How this Shiny app works...

  1. download and load the dataset
  2. tidy the dataset:
    • clean GPS coordinates: creates lat & lon from geo
    • customize color an icons based on field fillingRate
  3. launch Shiny Server that render a first default map
  4. display Shiny UI HTML page with default map
  5. Shiny Server then listen to any modification on GUI:
    • if filters are modified: dataset is refined and number of stations recomputed
    • if filters are reseted: original dataset is restored and the clustering reactivated

Some info about the dataset...

opendata <- read.csv('trilib.csv', header=TRUE, sep=';')
ggplot2::qplot(data=opendata, fillingRate, fill=wastetype_designation, 
               main='Histogram of Filling per Trash Type')

plot of chunk unnamed-chunk-2