{"id":15297444,"url":"https://github.com/joanmartin/trackanimation","last_synced_at":"2025-10-11T12:09:50.046Z","repository":{"id":22610903,"uuid":"96827685","full_name":"JoanMartin/trackanimation","owner":"JoanMartin","description":"Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.","archived":false,"fork":false,"pushed_at":"2022-02-05T15:46:39.000Z","size":8991,"stargazers_count":103,"open_issues_count":11,"forks_count":33,"subscribers_count":8,"default_branch":"develop","last_synced_at":"2025-09-25T10:52:38.033Z","etag":null,"topics":["geolocation","google-maps","gps","gps-tracking","gpx","gpx-parser","maps","matplotlib","openstreetmap","pandas","python","python2","python3","tracking"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"apache-2.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/JoanMartin.png","metadata":{"files":{"readme":"README.rst","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2017-07-10T22:43:13.000Z","updated_at":"2025-05-18T08:58:05.000Z","dependencies_parsed_at":"2022-08-07T10:15:58.776Z","dependency_job_id":null,"html_url":"https://github.com/JoanMartin/trackanimation","commit_stats":null,"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/JoanMartin/trackanimation","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanMartin%2Ftrackanimation","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanMartin%2Ftrackanimation/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanMartin%2Ftrackanimation/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanMartin%2Ftrackanimation/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/JoanMartin","download_url":"https://codeload.github.com/JoanMartin/trackanimation/tar.gz/refs/heads/develop","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/JoanMartin%2Ftrackanimation/sbom","scorecard":{"id":73102,"data":{"date":"2025-08-11","repo":{"name":"github.com/JoanMartin/trackanimation","commit":"246787f5afc26e16c4d502c7ec281aa9de4c3203"},"scorecard":{"version":"v5.2.1-40-gf6ed084d","commit":"f6ed084d17c9236477efd66e5b258b9d4cc7b389"},"score":1.7,"checks":[{"name":"Dangerous-Workflow","score":-1,"reason":"no workflows found","details":null,"documentation":{"short":"Determines if the project's GitHub Action workflows avoid dangerous patterns.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#dangerous-workflow"}},{"name":"Token-Permissions","score":-1,"reason":"No tokens found","details":null,"documentation":{"short":"Determines if the project's workflows follow the principle of least privilege.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#token-permissions"}},{"name":"Maintained","score":0,"reason":"0 commit(s) and 0 issue activity found in the last 90 days -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project is \"actively maintained\".","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#maintained"}},{"name":"Packaging","score":-1,"reason":"packaging workflow not detected","details":["Warn: no GitHub/GitLab publishing workflow detected."],"documentation":{"short":"Determines if the project is published as a package that others can easily download, install, easily update, and uninstall.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#packaging"}},{"name":"Code-Review","score":0,"reason":"Found 1/26 approved changesets -- score normalized to 0","details":null,"documentation":{"short":"Determines if the project requires human code review before pull requests (aka merge requests) are merged.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#code-review"}},{"name":"Binary-Artifacts","score":10,"reason":"no binaries found in the repo","details":null,"documentation":{"short":"Determines if the project has generated executable (binary) artifacts in the source repository.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#binary-artifacts"}},{"name":"CII-Best-Practices","score":0,"reason":"no effort to earn an OpenSSF best practices badge detected","details":null,"documentation":{"short":"Determines if the project has an OpenSSF (formerly CII) Best Practices Badge.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#cii-best-practices"}},{"name":"Pinned-Dependencies","score":-1,"reason":"no dependencies found","details":null,"documentation":{"short":"Determines if the project has declared and pinned the dependencies of its build process.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#pinned-dependencies"}},{"name":"Security-Policy","score":0,"reason":"security policy file not detected","details":["Warn: no security policy file detected","Warn: no security file to analyze","Warn: no security file to analyze","Warn: no security file to analyze"],"documentation":{"short":"Determines if the project has published a security policy.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#security-policy"}},{"name":"Fuzzing","score":0,"reason":"project is not fuzzed","details":["Warn: no fuzzer integrations found"],"documentation":{"short":"Determines if the project uses fuzzing.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#fuzzing"}},{"name":"License","score":10,"reason":"license file detected","details":["Info: project has a license file: LICENSE:0","Info: FSF or OSI recognized license: Apache License 2.0: LICENSE:0"],"documentation":{"short":"Determines if the project has defined a license.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#license"}},{"name":"Signed-Releases","score":-1,"reason":"no releases found","details":null,"documentation":{"short":"Determines if the project cryptographically signs release artifacts.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#signed-releases"}},{"name":"Branch-Protection","score":0,"reason":"branch protection not enabled on development/release branches","details":["Warn: branch protection not enabled for branch 'develop'"],"documentation":{"short":"Determines if the default and release branches are protected with GitHub's branch protection settings.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#branch-protection"}},{"name":"SAST","score":0,"reason":"SAST tool is not run on all commits -- score normalized to 0","details":["Warn: 0 commits out of 2 are checked with a SAST tool"],"documentation":{"short":"Determines if the project uses static code analysis.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#sast"}},{"name":"Vulnerabilities","score":0,"reason":"44 existing vulnerabilities detected","details":["Warn: Project is vulnerable to: PYSEC-2020-73","Warn: Project is vulnerable to: GHSA-3f63-hfp8-52jq","Warn: Project is vulnerable to: PYSEC-2021-41 / GHSA-3wvg-mj6g-m9cv","Warn: Project is vulnerable to: PYSEC-2020-77 / GHSA-3xv8-3j54-hgrp","Warn: Project is vulnerable to: PYSEC-2020-80 / GHSA-43fq-w8qq-v88h","Warn: Project is vulnerable to: GHSA-44wm-f244-xhp3","Warn: Project is vulnerable to: GHSA-4fx9-vc88-q2xc","Warn: Project is vulnerable to: PYSEC-2021-35 / GHSA-57h3-9rgr-c24m","Warn: Project is vulnerable to: PYSEC-2020-172 / GHSA-5gm3-px64-rw72","Warn: Project is vulnerable to: PYSEC-2021-331 / GHSA-7534-mm45-c74v","Warn: Project is vulnerable to: PYSEC-2021-137 / GHSA-77gc-v2xv-rvvh","Warn: Project is vulnerable to: PYSEC-2021-92 / GHSA-7r7m-5h27-29hp","Warn: Project is vulnerable to: PYSEC-2020-78 / GHSA-8843-m7mw-mxqm","Warn: Project is vulnerable to: PYSEC-2023-227 / GHSA-8ghj-p4vj-mr35","Warn: Project is vulnerable to: PYSEC-2022-10 / GHSA-8vj2-vxx3-667w","Warn: Project is vulnerable to: PYSEC-2021-36 / GHSA-8xjq-8fcg-g5hw","Warn: Project is vulnerable to: PYSEC-2021-42 / GHSA-95q3-8gr9-gm8w","Warn: Project is vulnerable to: PYSEC-2021-317 / GHSA-98vv-pw6r-q6q4","Warn: Project is vulnerable to: PYSEC-2021-38 / GHSA-9hx2-hgq2-2g4f","Warn: Project is vulnerable to: PYSEC-2022-168 / GHSA-9j59-75qj-795w","Warn: Project is vulnerable to: PYSEC-2020-76 / GHSA-cqhg-xjhh-p8hf","Warn: Project is vulnerable to: PYSEC-2021-40 / GHSA-f4w8-cv6p-x6r5","Warn: Project is vulnerable to: PYSEC-2021-69 / GHSA-f5g8-5qq7-938w","Warn: Project is vulnerable to: PYSEC-2021-139 / GHSA-g6rj-rv7j-xwp4","Warn: Project is vulnerable to: PYSEC-2021-71 / GHSA-hf64-x4gq-p99h","Warn: Project is vulnerable to: PYSEC-2020-84 / GHSA-hj69-c76v-86wr","Warn: Project is vulnerable to: PYSEC-2021-94 / GHSA-hjfx-8p6c-g7gx","Warn: Project is vulnerable to: GHSA-j7hp-h8jx-5ppr","Warn: Project is vulnerable to: PYSEC-2019-110 / GHSA-j7mj-748x-7p78","Warn: Project is vulnerable to: GHSA-jgpv-4h4c-xhw3","Warn: Project is vulnerable to: PYSEC-2022-42979 / GHSA-m2vv-5vj5-2hm7","Warn: Project is vulnerable to: PYSEC-2021-37 / GHSA-mvg9-xffr-p774","Warn: Project is vulnerable to: PYSEC-2021-39 / GHSA-p43w-g3c5-g5mq","Warn: Project is vulnerable to: PYSEC-2020-83 / GHSA-p49h-hjvm-jg3h","Warn: Project is vulnerable to: PYSEC-2022-8 / GHSA-pw3c-h7wp-cvhx","Warn: Project is vulnerable to: PYSEC-2021-93 / GHSA-q5hq-fp76-qmrc","Warn: Project is vulnerable to: PYSEC-2020-82 / GHSA-r7rm-8j6h-r933","Warn: Project is vulnerable to: PYSEC-2021-138 / GHSA-rwv7-3v45-hg29","Warn: Project is vulnerable to: PYSEC-2020-81 / GHSA-vcqg-3p29-xw73","Warn: Project is vulnerable to: PYSEC-2020-79 / GHSA-vj42-xq3r-hr3r","Warn: Project is vulnerable to: PYSEC-2021-70 / GHSA-vqcj-wrf2-7v73","Warn: Project is vulnerable to: PYSEC-2022-9 / GHSA-xrcv-f9gm-v42c","Warn: Project is vulnerable to: PYSEC-2023-175","Warn: Project is vulnerable to: GHSA-g7vv-2v7x-gj9p"],"documentation":{"short":"Determines if the project has open, known unfixed vulnerabilities.","url":"https://github.com/ossf/scorecard/blob/f6ed084d17c9236477efd66e5b258b9d4cc7b389/docs/checks.md#vulnerabilities"}}]},"last_synced_at":"2025-08-15T04:16:02.083Z","repository_id":22610903,"created_at":"2025-08-15T04:16:02.083Z","updated_at":"2025-08-15T04:16:02.083Z"},"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279007135,"owners_count":26084246,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-10-11T02:00:06.511Z","response_time":55,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["geolocation","google-maps","gps","gps-tracking","gpx","gpx-parser","maps","matplotlib","openstreetmap","pandas","python","python2","python3","tracking"],"created_at":"2024-09-30T19:17:36.219Z","updated_at":"2025-10-11T12:09:49.999Z","avatar_url":"https://github.com/JoanMartin.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"Track Animation\n===============\n\n**Track Animation** is a Python 2 and 3 library that provides an easy and user-adjustable way of **creating visualizations from GPS data** easily and without any kind of technical tie for the user. It allows to import GPS data from **GPX** (GPS eXchange Format) and CSV files in order to manipulate it and, finally, create **videos**, **images**, sequences of images or **interactive maps** to analyze the tracks based on their elevation, speed, duration or any other indicator.\n\nThe main third party libraries that **Track Animation** uses are `gpxpy \u003chttps://github.com/tkrajina/gpxpy\u003e`__ to parse and read GPX files, `pandas \u003chttp://pandas.pydata.org/\u003e`__ to manipulate all the GPS data and `matplotlib \u003chttps://matplotlib.org/\u003e`__ to plot it and save the visualizations.\n\nTo create a basic visualization, simply read the files and pass them to the *AnimationTrack* class:\n\n.. code:: python\n\n    import trackanimation\n    from trackanimation.animation import AnimationTrack\n\n    input_directory = \"example-routes/\"\n    ibiza_trk = trackanimation.read_track(input_directory)\n\n    fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=True, map_transparency=0.5)\n    fig.make_video(output_file='simple-example', framerate=60, linewidth=1.0)\n\n|Simple-Example|\n\n\nDependencies\n------------\n* `gpxpy \u003chttps://github.com/tkrajina/gpxpy\u003e`__\n* `pandas \u003chttp://pandas.pydata.org/\u003e`__\n* `matplotlib \u003chttps://matplotlib.org/\u003e`__\n* `geopy \u003chttps://github.com/geopy/geopy\u003e`__\n* `smopy \u003chttps://github.com/rossant/smopy\u003e`__\n* `mplleaflet \u003chttps://github.com/jwass/mplleaflet\u003e`__\n* `pillow \u003chttps://python-pillow.org/\u003e`__\n* `tqdm \u003chttps://github.com/noamraph/tqdm\u003e`__\n* `FFmpeg \u003chttps://ffmpeg.org/\u003e`__\n\n\nInstallation\n------------\nInstall **Track Animation** using `pip \u003chttp://www.pip-installer.org/en/latest/\u003e`__ with:\n\n    pip install trackanimation\n\nOr, `download the source files from PyPI \u003chttps://pypi.python.org/pypi/trackanimation\u003e`__.\n\n\nGetting Started\n---------------\nYou can find the following examples in the `examples.py \u003chttps://github.com/JoanMartin/trackanimation/blob/master/examples.py\u003e`__ file.\n\n\nFiltering by place\n~~~~~~~~~~~~~~~~~~\nIt is possible to filter a set of tracks to retrieve only the points that belong to an specific place or the whole tracks that have passed by there. With the function *timeVideoNormalize*, all the tracks will start and end at the same time in the video, specyfing its duration and frame rate in the parameters. In the next example, the video created has a duration of 10 seconds with 10 frames per second.\n\n.. code:: python\n\n    import trackanimation\n    from trackanimation.animation import AnimationTrack\n\n    input_directory = \"example-routes/\"\n    ibiza_trk = trackanimation.read_track(input_directory)\n    sant_josep_trk = ibiza_trk.get_tracks_by_place('Sant Josep de sa Talaia', only_points=False)\n    sant_josep_trk = sant_josep_trk.time_video_normalize(time=10, framerate=10)\n\n    fig = AnimationTrack(df_points=sant_josep_trk, dpi=300, bg_map=True, map_transparency=0.5)\n    fig.make_video(output_file='filtering-by-place', framerate=10, linewidth=1.0)\n\n|Filtering-Place|\n\n\nColoring tracks by one indicator\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nFurthermore, an indicator of the tracks can be visualized as a palette of colors to make the analysis and the interpretation of the data easier and effective.\n\n.. code:: python\n\n    import trackanimation\n    from trackanimation.animation import AnimationTrack\n\n    input_directory = \"example-routes/ibiza.csv\"\n    ibiza_trk = trackanimation.read_track(input_directory)\n    ibiza_trk = ibiza_trk.time_video_normalize(time=10, framerate=10)\n    ibiza_trk = ibiza_trk.set_colors('Speed', individual_tracks=True)\n\n    fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=True, map_transparency=0.5)\n    fig.make_video(output_file='coloring-map-by-speed', framerate=10, linewidth=1.0)\n\n    # Variable 'bg_map' must be to False in order to create an interactive map\n    fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=False, map_transparency=0.5)\n    fig.make_map(output_file='coloring-map-by-speed')\n\n`Click to view the interactive map \u003chttp://htmlpreview.github.io/?https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/coloring-map-by-speed.html\u003e`__\n\n|Coloring-Tracks|\n\n\nVisualizing multiple set of tracks\n~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~\nMultiple sets of tracks can be plotted independently in the same visualization to compare them.\n\n.. code:: python\n\n    import trackanimation\n    from trackanimation.animation import AnimationTrack\n\n    input_directory = \"example-routes/\"\n    ibiza_trk = trackanimation.read_track(input_directory)\n    sant_josep_trk = ibiza_trk.get_tracks_by_place('Sant Josep de sa Talaia', only_points=False)\n\n    ibiza_trk = ibiza_trk.set_colors('Speed', individual_tracks=True)\n    sant_josep_trk = sant_josep_trk.set_colors('Speed', individual_tracks=True)\n\n    fig = AnimationTrack(df_points=[ibiza_trk, sant_josep_trk], dpi=300, bg_map=True, map_transparency=0.5)\n    fig.make_image(output_file='multiple-axes')\n\n|Multiple-Axes|\n\n\nDocumentation\n-------------\nMore documentation and examples can be found at `Track Animation PDF document \u003chttps://github.com/JoanMartin/trackanimation/blob/master/Documentation.pdf\u003e`__.\n\n\n\n.. |Simple-Example| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/simple-example.gif\n.. |Filtering-Place| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/filtering-by-place.gif\n.. |Coloring-Tracks| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/coloring-map-by-speed.gif\n.. |Multiple-Axes| image:: https://raw.githubusercontent.com/JoanMartin/trackanimation/master/example-results/multiple-axes-auto.png\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoanmartin%2Ftrackanimation","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjoanmartin%2Ftrackanimation","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjoanmartin%2Ftrackanimation/lists"}