Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/jawsthegame/phillywaste
Analysis of waste bin placement in Philadelphia
https://github.com/jawsthegame/phillywaste
civic-hacking d3js leafletjs voronoi
Last synced: 27 days ago
JSON representation
Analysis of waste bin placement in Philadelphia
- Host: GitHub
- URL: https://github.com/jawsthegame/phillywaste
- Owner: jawsthegame
- Created: 2018-04-09T02:08:54.000Z (almost 7 years ago)
- Default Branch: master
- Last Pushed: 2018-04-09T03:45:59.000Z (almost 7 years ago)
- Last Synced: 2024-11-07T19:53:32.240Z (3 months ago)
- Topics: civic-hacking, d3js, leafletjs, voronoi
- Language: JavaScript
- Homepage: http://phillywaste.tomfleischer.com
- Size: 6.84 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Philly Waste Bins
Philadelphia has two types of municpal waste bins: traditional wire bins and
Big Belly solar compactors. Thanks to [OpenDataPhilly](https://www.opendataphilly.org/),
the locations of these bins are publicly available.The goal of this experiment is to show which areas of the cities are underserved by
municipal trash bins. To accomplish this, I have plotted a Voronoi Diagram using d3.
This diagram shows a polygon for each waste bin that represents everywhere where
that bin is the closest bin.This experiment presupposes that the smaller the area
of the polygon, the "better served" that area is. More specifically, the smaller the
polygon, the less one would have to walk to get to the nearest trash bin. As such,
each polygon is shaded according to its area, with blue being the smallest and red
being the largest.![map](http://phillywaste.tomfleischer.com/screenshot.png)
A live version of this map can be found [here](http://phillywaste.tomfleischer.com)
(also [with borders](http://phillywaste.tomfleischer.com/borders.html) and [with
unfilled polygons](http://phillywaste.tomfleischer.com/unfilled.html)).## Problems
* Privately owned bins such as those on college campuses, are not included. (you'll
notice the glaring "red" area in University City)## Libraries Used:
* [Leaflet](http://leafletjs.com/)
* [D3.js](https://d3js.org/)Also a special thanks to Chris Zetter for [this blog article](https://chriszetter.com/blog/2014/06/15/building-a-voronoi-map-with-d3-and-leaflet/).