Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/kinolag/traffic
A geospatial visualisation app showing road traffic information for all areas of Inner London. Built in TypeScript, combining React with D3.
https://github.com/kinolag/traffic
d3 data-visualization geojson geospatial-visualization mapping react responsive-design svg topojson typescript
Last synced: 12 days ago
JSON representation
A geospatial visualisation app showing road traffic information for all areas of Inner London. Built in TypeScript, combining React with D3.
- Host: GitHub
- URL: https://github.com/kinolag/traffic
- Owner: kinolag
- Created: 2024-01-22T11:17:51.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-03-22T20:18:56.000Z (8 months ago)
- Last Synced: 2024-10-12T18:27:19.105Z (26 days ago)
- Topics: d3, data-visualization, geojson, geospatial-visualization, mapping, react, responsive-design, svg, topojson, typescript
- Language: TypeScript
- Homepage: https://kinola.it/app/traffic/
- Size: 380 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# traffic - responsive geospatial visualisation app
Built with __TypeScript__, __React__, __D3__, __GeoJSON__, __TopoJson__ and __SVG__.
The app visualises part of the information about the [road traffic statistics](https://roadtraffic.dft.gov.uk/downloads) collected in the UK over 23 years (2000-2022), across 45,865 manual count points.
Traffic data is displayed over a [GeoJSON representation](https://martinjc.github.io/UK-GeoJSON/) of the selected area generated with [D3.js](https://d3js.org/).
A second chart shows the distribution of traffic in the area by vehicle type.
## Features:
• view traffic points in selected `area`, and related traffic details for each point
• see gradual evolution by modifying `year` via custom slider
• filter data by `vehicle type`
• display an animated loader while data is being fetched
• display a fallback UI if data fetching fails
The app is responsive and works on touch screen devices too.
Deployed to [kinola.it/app/traffic/](https://kinola.it/app/traffic/)
## Areas covered
All Inner London Boroughs are currently covered.
[Image source: Wikimedia](https://commons.wikimedia.org/wiki/File:Outer_Inner_London_Boroughs.png)
![London Boroughs](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7d/Outer_Inner_London_Boroughs.png/776px-Outer_Inner_London_Boroughs.png)
## Available Scripts
In the project directory, you can run:
### `yarn start`
Runs the app in the development mode.\
Open [http://localhost:3000](http://localhost:3000) to view it in the browser.The page will reload if you make edits.\
You will also see any lint errors in the console.### `yarn build`
Builds the app for production to the `build` folder.\
It correctly bundles React in production mode and optimizes the build for the best performance.The build is minified and the filenames include the hashes.\
Your app is ready to be deployed!