stravaplot

command module
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2020 License: BSD-2-Clause Imports: 22 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

StravaPlot Build Status

Bicycle rides over open map tiles.

Ride bicycles. Use Strava. Collect polylines.

Example

Usage

Start the service, then make a request to curl localhost:8000/v1/render and allow it time to query Strava. This doesn't respect pagination yet, so you may need to do this a few times until the db is fully populated. Fire up a browser and view the map at http://localhost:8000/

Configuration

This is in flight as Strava killed application tokens in favor of oauth years ago. You can find your client secret and id in Strava's settings.

Stravaplot's configuration file is in json.

{
        "clientid": "123123",
        "clientsecret": "1234567890123456789012345678901234567890",
        "bind": "127.0.0.1",
        "coordinates": "47.5800, -122.3000",
        "database": "/var/db/stravaplot/stravaplot.db",
        "location": "Seattle",
        "zoom": "11"
}
Parameters

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

Endpoints

/v1/render
  • Methods: GET
  • Response: 200
  • Function: Updates the database and renders a new map page
/
  • 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
⌂ 换网址