Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/map-turner/map-turner
Display the evolution of locations found in a CSV file on a map
https://github.com/map-turner/map-turner
gatsby gis leaflet myturn
Last synced: about 1 month ago
JSON representation
Display the evolution of locations found in a CSV file on a map
- Host: GitHub
- URL: https://github.com/map-turner/map-turner
- Owner: map-turner
- License: gpl-3.0
- Created: 2024-04-04T23:31:37.000Z (8 months ago)
- Default Branch: main
- Last Pushed: 2024-08-30T21:36:32.000Z (3 months ago)
- Last Synced: 2024-09-29T13:07:25.474Z (about 2 months ago)
- Topics: gatsby, gis, leaflet, myturn
- Language: JavaScript
- Homepage: https://map-turner.github.io/map-turner/
- Size: 961 KB
- Stars: 1
- Watchers: 1
- Forks: 0
- Open Issues: 8
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Tool Usage Mapper## What is this?
This tool was made to display the evolution of locations on a map.
## 🚀 Quick start with demo data
1. **Get the dependencies.**
```shell
npm install
```1. **Set your environment variables.**
Rename `.env.development.sample` to `.env.development` and edit the file as needed.
1. **Run it!**
```shell
npm run develop
```1. **Look at the demo data!**
Open your browser, navigate to `http://localhost:8000/`.
Play with the slider to see how the locations change over time.## Display your actual data:
1. **Warning.**
You're responsible for the usage you make of this tool.
Be very careful with the data you will be working with.
Respect all the applicable laws.1. **Requirements.**
```shell
pip install pyarrow pandas
npm i
```1. **Set your environment variables.**
Rename `.env.development.sample` to `.env.development` and fill the form.
1. **Get the data from myturn.**
```shell
npm run get-data
```1. **Collect all the files into one.**
```shell
npm run merge-data
```1. **Download file with postcodes and coordinates.**
If you're not in the UK, you'll have to do a bit of work here:
You need to get the longitude and latitude for your zip codes/ postcodes.If in the UK, you might want to get a different file here: https://www.getthedata.com/open-postcode-geo
The default file is massive and will take forever but regional extracts are available.
Modify `scripts/get_uk_postcodes.sh` accordingly.```shell
npm run get-uk-postcodes
```1. **Add coordinates to the collection file.**
```shell
npm run merge-data-and-coord
```1. **Run it!**
```shell
npm run develop
```1. **Look at your data!**
Open your browser, navigate to `http://localhost:8000/`.
Play with the slider to see your locations change over time.