Skip to content

Latest commit

 

History

8 Commits

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 
 
 
 
 

Repository files navigation

GPX Max. Speed Simulation

This Python script processes .gpx track files to analyze and visualize travel speeds, compare them against a configurable maximum speed (vmax), and calculate how much longer a trip would take if that speed limit were strictly followed.

Features

  • Parses all .gpx files in a data/ folder
  • Crops the track to a configurable bounding box (optional)
  • Computes actual speeds between GPS points
  • Identifies segments exceeding vmax and calculates the extra travel time required to obey the limit
  • Generates optional plots:
    • Original vs adjusted speed traces
    • Highlights segments exceeding vmax
  • Summarizes delays per file and overall

Installation

Create a virtual environment and install the requirements:

python -m venv venv
source venv/bin/activate  # or venv\\Scripts\\activate on Windows
pip install -r requirements.txt

Rund the script by executing the main file: python main.py

Provided Data

The data contained in the repository are recordings from bus rides in Schinznach-Dorf, Switzerland. They were recorded ahead of a public vote on the introduction of a 30 kph zone that affects the local commuter bus.

About

No description, website, or topics provided.

Resources

Stars

0 stars

Watchers

1 watching

Forks

Releases

Packages

Contributors

Languages