Code Monkey home page Code Monkey logo

activity-mapper-2's Introduction

Activity-Mapper-2

Displays GPX Activities on an Open Street Maps view using the Open Layers framework.

Features

  • Web-based activity browsing using Open Street Maps (zoom, pan, as usual).
  • Capable of displaying many activities at the same time
  • Activities are color-coded (dark blue for runs, red for biking, green for walks, light blue for others)
  • Mouse over an activity for details (date/time, distance, etc.)
  • Click on an individual activity to highlight and see details
  • Activity timeline list on the right panel
  • Select an activity from the timeline to highlight and zoom to that activity
  • Enable and disable the display of activity categories with the controls below the map
  • Select multiple activities by holding shift while clicking on the map tracks.
  • Click and drag the mouse (while holding Control) to select activities on the map from a "DragBox" rectangle.

See TODO file for possible future enhancements.

Setup

Install node.js if you don't have that yet.

Install the node.js package dependencies (parcel and open layers):

npm install parcel
npm install ol

Copy GPX data files to ./data/gpx/

Copy "cardioActivities.csv" to ./data/csv/

Start the small local parcel web server:

npm start

Browse to http://localhost:1234

Enjoy your map.

Note on cardioActivites.csv

cardioActivities is a CSV file with the following header row and one example row:

Activity Id,Date,Type,Route Name,Distance (mi),Duration,Average Pace,Average Speed (mph),Calories Burned,Climb (ft),Average Heart Rate (bpm),Friend's Tagged,Notes,GPX File
abababab-abab-abab-abab-abababababab,2020-05-02 15:16:17,Walking,,0.70,12:31,17:17,3.36,62.0,3,,"","",2020-05-02-151617.gpx

This is the default csv export format from Run Keeper. Go to "Account Settings" -> "Export Data" to export your Run Keeper data.

activity-mapper-2's People

Contributors

jratke avatar

Stargazers

Steve Rudolfi avatar

Watchers

 avatar James Cloos avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.