stravaplot

command module
v0.1.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 15, 2019 License: BSD-2-Clause Imports: 12 Imported by: 0

README

StravaPlot Build Status

Bicycle rides over open map tiles.

Ride bicycles. Use Strava. Collect polylines.

Example

Configuration

Create a Strava API token. Grab your athleteid with curl -s -H 'Authorization: Bearer <yourapitoken>' 'https://www.strava.com/api/v3/athlete' | jq .id

Stravaplot's configuration file is in json.

{
        "athleteid": "123123",
        "accesstoken": "1234567890123456789012345678901234567890",
        "coordinates": "47.5800, -122.3000",
        "location": "Seattle",
        "zoom": "11"
}
Parameters

-config configuration file (default "stravaplot.json")

-db sqlite3 db (default "stravaplot.db")

Endpoints

/v1/render
  • Methods: GET
  • Response: 200
  • Function: Updates the database and renders a new map page
/rides/strava.html
  • Methods: GET
  • Response: 200
  • Function: Serves the rendered map from a static file

Documentation

Overview

load configuration

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL