About gpx_vis
Transforms your .GPX files into an interactive map, whether you're conquering mountain trails or cruising city streets.
Whether you're using apps like Komoot and Strava,
or crafting tracks on platforms like gpx.studio - just make sure your
file includes data for latitude, longitude, elevation, and time, and you're good to go!
Important note: gpx_vis is still in its development phase, so expect more exciting features
and enhancements down the trail. But in the meantime, buckle up and get ready to explore your adventures! 🧗🚴
Contents
Install
Installing gpx_vis is straightforward through PyPI:
pip install gpx_vis
To update to the latest version (if applicable):
pip install gpx_vis --upgrade
Instantiate
from gpx_vis import Track
track = Track(pathname)
pathname serves as a reference to either a single .gpx file or a directory.
If a directory path is provided, all .gpx files contained within that directory
will be merged, but retain their original metadata (e.g., different tracks remain separated).
This allows users to overlay multiple tracks onto a single map, providing a comprehensive summary of the data being analyzed.
Map creation
track.create_map(filename)
-
This generates an HTML file saved under
filename, which contains an interactive map (example). -
Each segment of a track corresponds to the elevation relative to user's position: blue = lower elevation, yellow = higher elevation.
-
Users can hover over routes or click on final waypoints (flags) for additional information:
Different backgrounds are available (selectable at lower-right corner):
| Tile type | Example |
|---|---|
| Dark | |
| Street view | |
| Plain | |
| Plain (Heirarchical) |
In cases where the map contains a large dataset and loading time is a concern (if one
has been very hardworking), users have the option to include lite = True.
- By default, this option limits the number of data points displayed on each route to
nlite = 50. This is adjustable usingnliteargument:
track.create_map(filename, lite=True, nlite=100)
Note that the minimum value for nlite is 10.
City overview
track.city_list
Interested in the cities you passed through on your journey? This command generates a list of cities - sorted by country and name - that were detected along the tour route.
- The
frequencyparameter indicates how many times each city was encountered, providing a rough estimate of the time spent in each city.
Additional information
If you wish to plot or inspect different values, these parameters are also accessible via:
track.t: time (UTC)track.x: longitude (deg) - x values on a graph would represent the latitude.track.y: latitude (deg)track.z: elevation (m)
For a more comprehensive and unprocessed dataset, you can use:
track.data: Returns all data in a pandas.DataFrame accessible format.
Dependencies
(numpy) https://numpy.org/
(pandas) https://pandas.pydata.org/
(altair) https://altair-viz.github.io/
(branca) https://pypi.org/project/branca/
(gpxpy) https://github.com/tkrajina/gpxpy
(vincenty) https://pypi.org/project/vincenty/
(folium) https://github.com/python-visualization/folium
(humanfriendly) https://pypi.org/project/humanfriendly/
(reverse-geocode) https://pypi.org/project/reverse-geocode/
Metadata
Release files for gpx-vis 0.3.6
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | Provenance | Actions |
|---|---|---|---|---|
| gpx_vis-0.3.6.tar.gz | 10.5 kB | Without provenance | Details for gpx_vis-0.3.6.tar.gz |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Actions Reset |
|---|---|---|---|---|
| gpx_vis-0.3.6-py3-none-any.whl | Python 3 | none | any | Details for gpx_vis-0.3.6-py3-none-any.whl |
Total release size: 21.1 kB
Release files / gpx_vis-0.3.6.tar.gz
| Download URL | gpx_vis-0.3.6.tar.gz |
|---|---|
| Size | 10.5 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
7c26907161a4ef694269c7314e8b2cc90d240ce972368a7b9d7277f557f9ccf4
|
|
BLAKE2b-256 checksum How to use checksums |
eaf964b664855f43c2293e571529a0c689187e34686c2d168b97245ee7f4215c
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.8
|
Release files / gpx_vis-0.3.6-py3-none-any.whl
| Download URL | gpx_vis-0.3.6-py3-none-any.whl |
|---|---|
| Size | 10.6 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
9720454f71ff919909b300c0460e0bfde6949c63354e66a29bf1071366cf8290
|
|
BLAKE2b-256 checksum How to use checksums |
1f7f82873e50e9f3729207441457afcb044d9e9e99da2dd0441558b09e807813
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
twine/5.0.0 CPython/3.8.8
|
Security for gpx-vis 0.3.6
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
No provenance found
None of the files in this release were uploaded with provenance metadata.
A note on package security
PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.
To learn more about protecting yourself from malicious actors, visit our package security documentation.