https://github.com/ejw-data/leaflet-transportation
Analysis of populations centers that could support high speed rail
https://github.com/ejw-data/leaflet-transportation
api flask html-css-javascript leafletjs python sqlalchemy-orm sqlite
Last synced: 10 months ago
JSON representation
Analysis of populations centers that could support high speed rail
- Host: GitHub
- URL: https://github.com/ejw-data/leaflet-transportation
- Owner: ejw-data
- Created: 2023-06-15T00:47:44.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2023-07-02T18:10:20.000Z (over 2 years ago)
- Last Synced: 2025-01-22T06:47:09.546Z (11 months ago)
- Topics: api, flask, html-css-javascript, leafletjs, python, sqlalchemy-orm, sqlite
- Language: Jupyter Notebook
- Homepage:
- Size: 59.3 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 4
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# leaflet-transportation
Author: Erin James Wills, ejw.data@gmail.com

Photo by Erin Wills
## Overview
This repository explores how population centers could influence modes of transportation. The main question being considered is where should high speed rail be located. Since the United Staes is very large and has low population density throughout the country, designing a practical rail system is difficult. To analyze the problem, I selected census population data of approximately the largest 800 metropolitan areas in the United States. I also accessed latitude and longitude data for each city by using the geocode api from Geoapify.
**`Future Work`**: Additional features like rotating icons that align with path direction and adjusting the boundary box automatically might be included. I am also interested in adding the paths of existing transportation.
## Github Pages
Not deployed. Runs on Flask.
## Technologies
* Python
* SQLite
* HTML/CSS/JS
* Leaflet.js
## Data Source
US Census
## Setup and Installation
1. Clone the repo to your local machine
1. Open repo folder in a terminal
1. Run the app.py file - `python app.py`
## Example

Fig.1 - Main page with the expanded sidebar visible.
**References:**
https://github.com/ewoken/Leaflet.MovingMarker
https://github.com/datanews/amtrak-geojson
**Image References:**
Photo by Daniel Abadia on Unsplash