Skip to main content

Create maps from your Strava Activities

Project description

strava_map

PyPI PyPI - Python Version GitHub License

Downloads strava activities and generates a heatmap for each activity type. View all your Strava activity data in one map, or just download and save your activity data to edit as you choose.

Installation

strava_map can be installed via pip using:

pip install strava-map

or run directly from a cloned repo

git clone https://github.com/tcramm0nd/strava_map.git

Example

from strava_map import Map
m = Map()

On the initial run you will be prompted for your Client ID and Client Secret. This is to authorize the App to retrieve activity data from Strava. All Strava keys are stored locally in a .credntials.json file.

You can find your Client ID and Client Secret by navigating to Settings > My API Application. If you have not set up Strava for API applications, you can find directions on how to do so here.

Strava Cient information

Once the Strava Client has been authorized it will proceed to retrieve activity data, stored in Map.activity_database.

Create a Heatmap of all activities

You can create a heatmap of all activiies by simply running

m.create_heatmap()

This will generate a map with different activity types coded as different colors.

Saving activity data

m.save_activities(path='path/to/directory/')

To Do

  • add KML support
  • add colorization options
  • assign gradients to activities

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

strava-map-0.1.0.tar.gz (7.5 kB view details)

Uploaded Source

Built Distribution

strava_map-0.1.0-py3-none-any.whl (10.5 kB view details)

Uploaded Python 3

File details

Details for the file strava-map-0.1.0.tar.gz.

File metadata

  • Download URL: strava-map-0.1.0.tar.gz
  • Upload date:
  • Size: 7.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

File hashes

Hashes for strava-map-0.1.0.tar.gz
Algorithm Hash digest
SHA256 f6ae7609a14d62116c0ef577a49b4962d756dfe78649957da8085f7af72e5083
MD5 8852b0c170a96a22a44ef9996850c458
BLAKE2b-256 7e2395e5b2dc740b752333e48b4a89a104c6776a3d591a0e2ff9d184e99fbd4d

See more details on using hashes here.

File details

Details for the file strava_map-0.1.0-py3-none-any.whl.

File metadata

  • Download URL: strava_map-0.1.0-py3-none-any.whl
  • Upload date:
  • Size: 10.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/3.3.0 pkginfo/1.7.0 requests/2.25.1 setuptools/45.2.0 requests-toolbelt/0.9.1 tqdm/4.56.2 CPython/3.8.5

File hashes

Hashes for strava_map-0.1.0-py3-none-any.whl
Algorithm Hash digest
SHA256 87700a09cfc7b6e71fd54a601e653d69cb8ee5a3cb343ff5f74ee5c8cc2a68ac
MD5 ead78265231617625ebea20ff9b333ee
BLAKE2b-256 789f8179df17d6e581394238da222068c8fca6624722f6c688d2c156a9e09713

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page