All Projects β†’ JoanMartin β†’ trackanimation

JoanMartin / trackanimation

Licence: Apache-2.0 license
Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data.

Programming Languages

python
139335 projects - #7 most used programming language
Makefile
30231 projects

Projects that are alternatives of or similar to trackanimation

orange3-geo
🍊 🌍 Orange add-on for dealing with geography and geo-location
Stars: ✭ 22 (-70.27%)
Mutual labels:  maps, openstreetmap, gps, geolocation
svelte-googlemaps
Svelte Google Maps Components
Stars: ✭ 62 (-16.22%)
Mutual labels:  maps, google-maps, geolocation
EasyWayLocation
This library contain all utils related to google location. like, getting lat or long, Address and Location Setting dialog, many more...
Stars: ✭ 142 (+91.89%)
Mutual labels:  maps, google-maps, gps
mapus
A map tool with real-time collaboration πŸ—ΊοΈ
Stars: ✭ 2,687 (+3531.08%)
Mutual labels:  maps, google-maps, openstreetmap
Map Matching
The map matching functionality is now located in the main repository https://github.com/graphhopper/graphhopper#map-matching
Stars: ✭ 665 (+798.65%)
Mutual labels:  tracking, openstreetmap, gps
Leku
🌍 Map location picker component for Android. Based on Google Maps. An alternative to Google Place Picker.
Stars: ✭ 612 (+727.03%)
Mutual labels:  maps, google-maps, geolocation
Avenue-GPX-Viewer
A simple and easy GPX viewer for macOS.
Stars: ✭ 42 (-43.24%)
Mutual labels:  gpx, maps, geolocation
X-TRACK
A GPS bicycle speedometer that supports offline maps and track recording
Stars: ✭ 3,736 (+4948.65%)
Mutual labels:  gpx, gps, gps-tracking
tracking-location-provider-android
Tracking the android mobile and animating marker smoothly in Google Maps. Tracking has been done both in foreground and background. Tested in Android Oreo 8.1, Android 6.0 and Android 5.0
Stars: ✭ 37 (-50%)
Mutual labels:  tracking, google-maps, gps-tracking
Maps
🌍🌏🌎 The whole world fits inside your cloud!
Stars: ✭ 253 (+241.89%)
Mutual labels:  tracking, maps, gps
ember-google-maps
A friendly Ember addon for working with Google Maps.
Stars: ✭ 93 (+25.68%)
Mutual labels:  maps, google-maps
erlymon
Open Source GPS Tracking System
Stars: ✭ 32 (-56.76%)
Mutual labels:  gps, gps-tracking
openstreetmap-americana
A quintessentially American map style
Stars: ✭ 89 (+20.27%)
Mutual labels:  maps, openstreetmap
xavc rtmd2srt
Extract real time meta-data and GPS tracks from Sony XAVC video
Stars: ✭ 29 (-60.81%)
Mutual labels:  gpx, gps
django-for-runners
Store your GPX tracks of your running (or other sports activity) in django.
Stars: ✭ 49 (-33.78%)
Mutual labels:  gpx, gps-tracking
Udacity-Data-Analyst-Nanodegree
Repository for the projects needed to complete the Data Analyst Nanodegree.
Stars: ✭ 31 (-58.11%)
Mutual labels:  pandas, matplotlib
js-markerclusterer
Create and manage clusters for large amounts of markers
Stars: ✭ 92 (+24.32%)
Mutual labels:  maps, google-maps
GPXSee-maps
GPXSee maps
Stars: ✭ 27 (-63.51%)
Mutual labels:  maps, openstreetmap
skymapper
Mapping astronomical survey data on the sky, handsomely
Stars: ✭ 35 (-52.7%)
Mutual labels:  maps, matplotlib
GoogleMapsHelper
An easy to integrate Model Based Google Maps Helper (SVHTTPClient, AFNetworking) That lets you Geo Code , Reverse Geocode, Get Directions , Places Autocomplete.
Stars: ✭ 21 (-71.62%)
Mutual labels:  maps, google-maps

Track Animation

Track Animation is a Python 2 and 3 library that provides an easy and user-adjustable way of creating visualizations from GPS data easily and without any kind of technical tie for the user. It allows to import GPS data from GPX (GPS eXchange Format) and CSV files in order to manipulate it and, finally, create videos, images, sequences of images or interactive maps to analyze the tracks based on their elevation, speed, duration or any other indicator.

The main third party libraries that Track Animation uses are gpxpy to parse and read GPX files, pandas to manipulate all the GPS data and matplotlib to plot it and save the visualizations.

To create a basic visualization, simply read the files and pass them to the AnimationTrack class:

import trackanimation
from trackanimation.animation import AnimationTrack

input_directory = "example-routes/"
ibiza_trk = trackanimation.read_track(input_directory)

fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=True, map_transparency=0.5)
fig.make_video(output_file='simple-example', framerate=60, linewidth=1.0)

Simple-Example

Dependencies

Installation

Install Track Animation using pip with:

pip install trackanimation

Or, download the source files from PyPI.

Getting Started

You can find the following examples in the examples.py file.

Filtering by place

It is possible to filter a set of tracks to retrieve only the points that belong to an specific place or the whole tracks that have passed by there. With the function timeVideoNormalize, all the tracks will start and end at the same time in the video, specyfing its duration and frame rate in the parameters. In the next example, the video created has a duration of 10 seconds with 10 frames per second.

import trackanimation
from trackanimation.animation import AnimationTrack

input_directory = "example-routes/"
ibiza_trk = trackanimation.read_track(input_directory)
sant_josep_trk = ibiza_trk.get_tracks_by_place('Sant Josep de sa Talaia', only_points=False)
sant_josep_trk = sant_josep_trk.time_video_normalize(time=10, framerate=10)

fig = AnimationTrack(df_points=sant_josep_trk, dpi=300, bg_map=True, map_transparency=0.5)
fig.make_video(output_file='filtering-by-place', framerate=10, linewidth=1.0)

Filtering-Place

Coloring tracks by one indicator

Furthermore, an indicator of the tracks can be visualized as a palette of colors to make the analysis and the interpretation of the data easier and effective.

import trackanimation
from trackanimation.animation import AnimationTrack

input_directory = "example-routes/ibiza.csv"
ibiza_trk = trackanimation.read_track(input_directory)
ibiza_trk = ibiza_trk.time_video_normalize(time=10, framerate=10)
ibiza_trk = ibiza_trk.set_colors('Speed', individual_tracks=True)

fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=True, map_transparency=0.5)
fig.make_video(output_file='coloring-map-by-speed', framerate=10, linewidth=1.0)

# Variable 'bg_map' must be to False in order to create an interactive map
fig = AnimationTrack(df_points=ibiza_trk, dpi=300, bg_map=False, map_transparency=0.5)
fig.make_map(output_file='coloring-map-by-speed')

Click to view the interactive map

Coloring-Tracks

Visualizing multiple set of tracks

Multiple sets of tracks can be plotted independently in the same visualization to compare them.

import trackanimation
from trackanimation.animation import AnimationTrack

input_directory = "example-routes/"
ibiza_trk = trackanimation.read_track(input_directory)
sant_josep_trk = ibiza_trk.get_tracks_by_place('Sant Josep de sa Talaia', only_points=False)

ibiza_trk = ibiza_trk.set_colors('Speed', individual_tracks=True)
sant_josep_trk = sant_josep_trk.set_colors('Speed', individual_tracks=True)

fig = AnimationTrack(df_points=[ibiza_trk, sant_josep_trk], dpi=300, bg_map=True, map_transparency=0.5)
fig.make_image(output_file='multiple-axes')

Multiple-Axes

Documentation

More documentation and examples can be found at Track Animation PDF document.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].