The Rapid.Tech Railway Simulator is a project that calculates the distance between two locations based on current roads and estimates the cost of building a high-speed railway between them. It also analyzes the population and potential ridership benefits.
- Calculate road distance using Google Distance Matrix API
- Estimate railway construction costs
- Analyze population and potential ridership
- Adjustable parameters for population radius, ticket price, and max speed
-
Clone the repository:
git clone https://github.com/EvanOleary26/RapidTech.git cd RapidTech -
Create and activate a virtual environment:
python3 -m venv venv source venv/bin/activate -
Install the dependencies:
pip install -r requirements.txt
-
Reassemble the population cache file:
python scripts/reassemble_population_cache.py
-
Set up environment variables:
export GOOGLE_API_KEY='YOUR_GOOGLE_API_KEY'
-
Run the Flask application:
python app.py
- Open a web browser and navigate to
http://127.0.0.1:5000/. - Enter the origin and destination locations.
- Adjust the parameters as needed in the "Map" tab.
- Click "Calculate" to see the results.
- Thanks to KineticVision and Major League Hacking for their informational sessions on APIs and Machine Learning Usage during the Hackathon.
- Thanks to Revolution UC and all their sponsors for hosting the event.