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: about 1 month 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 (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-03-22T20:18:56.000Z (over 2 years ago)
- Last Synced: 2025-02-07T11:52:19.803Z (over 1 year 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)

## 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!