Skip to content

Add calculate_avg_speed() method in src/otGpxTrack/main.py - #1

Merged
pascal2802 merged 1 commit into
masterfrom
vibe/calculate-avg-speed-172180
May 17, 2026
Merged

pascal2802 merged 1 commit into
masterfrom
vibe/calculate-avg-speed-172180

Conversation

@pascal2802

Copy link
Copy Markdown
Owner

Add a new method calculate_avg_speed() in src/otGpxTrack/main.py that uses timestamps and GPX coordinates to return the average speed in km/h.

Changes:

  • Add new GpxTrack class in main.py with calculate_avg_speed() method
  • Method uses timestamps and GPX coordinates to calculate average speed in km/h
  • Add comprehensive unit tests in test/test_main.py
  • Update init.py to export the new class
  • Add tests for edge cases (zero duration)

- Add new GpxTrack class in main.py with calculate_avg_speed() method
- Method uses timestamps and GPX coordinates to calculate average speed in km/h
- Add comprehensive unit tests in test/test_main.py
- Update __init__.py to export the new class
- Add tests for edge cases (zero duration)
@pascal2802
pascal2802 marked this pull request as ready for review May 17, 2026 17:53
@pascal2802
pascal2802 merged commit 8317bd3 into master May 17, 2026
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants