Code Monkey home page Code Monkey logo

streamlit-data-viz-demo's Introduction

streamlit-data-viz-demo

A demo application to visualize the travel information from Google Maps Timeline using Streamlit in Python.

The demo application allows the user to interactively filter the data based on time periods. The heatmaps for the locations can also be plotted. Along with the heatmaps, there is an option to show histograms for the data points by different time periods like hour, months & years. Additionally, a specified number of random images can be obtained from Flickr images of the locations in the dataset.

Screenshot of the demo application

Installation

Install the dependencies

pip install -r requirements.txt

Instructions for Running

  1. Get the Google Maps location history from Google Takeout.

  2. Clean the data by running data_cleaning.py. It removes all data except latitude, longitude & timestamps. The data is also converted in to the standard format. A sample data file containing 10K data points is provided in this repo clean_data_sample.csv.

  3. For getting images from Flickr, you need to create an app & get the API key & secret.
    The API key & secret are stored in a .env file. Create a copy of .env.example & rename it to .env & add the values for the app secret & api key for Flickr services.

  4. Run the streamlit app using

    streamlit run travel_viz.py

    The application will run on localhost:8501 by default.

  5. To use Mapbox for the streamlit maps, please configure the settings following the documentation on Streamlit.

Screenshots

Screenshot of Map with Location Data

Screenshot of Images from Flickr

Screenshot of Heatmap

Screenshot of Histogram with Monthly Distribution

streamlit-data-viz-demo's People

Contributors

nithishr avatar renaud17 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.