Giter VIP home page Giter VIP logo

travel_visualisation's Introduction

Distance Visualisation for two people

This tool visualises the locations and distances of two individual travelers over time.

  • It uses the Google Maps API as ground data and plots the locations as hearts (see history) into the map.

  • This can then be played as animation with appropriate zoom levels or interacted with by using the slider of the time point.

    • The speeds vary for days spend at home and on traveling location such that the travels are streched in time
  • With colors the distance (red for far away) is also displayes as heatmap beneath the slider.

  • At the left panel the locations and distances are displayed together with the days wich where spend together by the two people.

example view of visualised data

History

This is tool I wrote as a wedding gift for two of my friends. During their years-long journey towards their wedding they traveled a lot. This tool visualised this journey and gave a non linear overview of their time together and apart whereever tey were.

Usage

  1. Open animatePins_google.html as text file and optionally edit GREEN, BLUE, TITLE etc. and insert your Google Maps API key at the bottom where it says __APIKEY__.
  2. Look into the files data/locations.csv, data/green.csv, data/blue.csv and insert your data.
  3. Open animatePins_google.html in a webbrowser
  4. At the bottom load the data from [2] you want to visualize into the programm with the buttons for Locations, GREEN, BLUE
  5. Adjust how many ticks per day for home locations (fast) and remote locations (slow) sould pass and how long a travel should last on average in ticks.
  6. Hit generate Data and you will see a timeline and can hit Play.
  7. You can always adjust the speed in ticks/second, the map style (default or silver-green) or reset your settings (also loaded data)

Data

You need to manually generate your data into the three given files.

Personal travel file (GREEN.csv, BLUE.csv)

For each of the two people there has to be .csv file separeted by semicola and containing the following data:

Field Description
destination_name Name of the destination
lat latitudinal position in format 2.000101 (optional if locations.csv is given)
lng longitudinal position in format 2.000101 (optional if locations.csv is given)
arrival_date arrival data at destination
departure_date departure data from destination
default_after_location destination where the person is normally located (home) after (optional if previously given and not changed)
display_name optional alternative display name to destination_name e.g. "Conference" instead of "Trento"

Locations file

In this file a list of all destinations and their locations can be given to shorten the personal travel file: Name;lng;lat;lng

Field Description
destination_name Name of the destination
lng longitudinal position in format 2.000101
lat latitudinal position in format 2.000101
lng longitudinal position in format 2.000101 again?!

ToDo

  • unfortunately the start and end date has to be manually given to the pinControl.js
  • there is an error in counting together-days if the displayed name is different but location is the same.
  • default_after_location is not an optimal solution
  • documentation

travel_visualisation's People

Contributors

tutlum avatar

Watchers

 avatar

travel_visualisation's Issues

Implement gps tracks for shorter time periots

This tool was meant to visualise two individuals over a long time periode but the visualisation of shorter travels (even as short as a single hiking gps track) could be supported

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.