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 hashes)

Uploaded Source

Built Distribution

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

Uploaded Python 3

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