MIT License

项目介绍

remisalmon/Strava-local-heatmap 是一个托管在 GitHub 上的开源项目,主要使用 Python 编写,采用 MIT License 许可证,目前获得 183 个 Star、34 次 Fork。

仓库全名
remisalmon/Strava-local-heatmap
开源许可证
MIT License
Star 数
183
Fork 数
34
未关闭 Issue
5

README 摘要

stravalocalheatmap.py Python script to reproduce the Strava Global Heatmap (www.strava.com/heatmap) with local GPX files Optimized for cycling activities :bicyclist: Features Minimal Python dependencies (numpy+matplotlib) Fast (parse 3x faster than gpxpy.parse) Usage Download your GPX files to the gpx folder (https://support.strava.com/hc/en-us/articles/216918437-Exporting-your-Data-and-Bulk-Export) Install the…

完整内容见 GitHub 原始 README 或本页 。

常见问题

Strava-local-heatmap 用什么语言开发?

主要使用 Python 编写,采用 MIT License 许可证,目前有 183 个 Star。

Strava-local-heatmap 可以免费商用吗?

仓库采用 MIT License 许可证,可免费使用与修改,商业使用请遵守许可证条款(例如保留版权声明与许可声明)。

如何获取 Strava-local-heatmap 的源码?

可以直接克隆仓库:git clone https://github.com/remisalmon/Strava-local-heatmap.git,默认分支为 master;安装与运行步骤见仓库 README。

Strava-local-heatmap 最近还在维护吗?

仓库最近一次更新为 2024年2月2日,当前有 5 个未关闭 Issue;Star 数为 183,可作为社区活跃度的参考。

关于

Python script to generate a high resolution heatmap from Strava GPX files

描述取自 GitHub 官方 API,中文内容由 GitRead 中文社区 编辑团队整理。

简要分析

热度分
258
价值分
120
活跃状态
活跃

README

strava_local_heatmap.py

Python script to reproduce the Strava Global Heatmap (www.strava.com/heatmap) with local GPX files

Optimized for cycling activities :bicyclist:

Features

  • Minimal Python dependencies (numpy+matplotlib)
  • Fast (parse 3x faster than gpxpy.parse)

Usage

Command-line options

usage: strava_local_heatmap.py [-h] [--dir DIR] [--filter FILTER] [--year YEAR [YEAR ...]]
                               [--bounds BOUND BOUND BOUND BOUND] [--output OUTPUT] [--zoom ZOOM] [--sigma SIGMA]
                               [--orange] [--csv]

optional arguments:
  -h, --help            show this help message and exit
  --dir DIR             GPX files directory (default: gpx)
  --filter FILTER       GPX files glob filter (default: *.gpx)
  --year YEAR [YEAR ...]
                        GPX files year(s) filter (default: all)
  --bounds BOUND BOUND BOUND BOUND
                        heatmap bounding box as lat_min, lat_max, lon_min, lon_max (default: -90 +90 -180 +180)
  --output OUTPUT       heatmap name (default: heatmap.png)
  --zoom ZOOM           heatmap zoom level 0-19 or -1 for auto (default: -1)
  --sigma SIGMA         heatmap Gaussian kernel sigma in pixel (default: 1)
  --orange              not a heatmap...
  --csv                 also save the heatmap data to a CSV file

Note: ZOOM is OpenStreetMap zoom level (the number following map= in www.openstreetmap.org/#map=)

On the use of histogram equalization: https://medium.com/strava-engineering/the-global-heatmap-now-6x-hotter

Examples

command output
strava_local_heatmap.py heatmap.png
strava_local_heatmap.py --orange orange.png
strava_local_heatmap.py --csv See https://umap.openstreetmap.fr/en/map/demo-heatmap_261644 (by @badele)

Projects using strava_local_heatmap.py

JeSuisUnDesDeux

Troubleshooting

Arch Linux: sudo pacman -S tk (see here)

评论

暂无评论