Giter VIP home page Giter VIP logo

location-spending-time's Introduction

location-spending-time

This repo uses Google Maps Location History and provides how much time you spend at specific locations such as home, work, and so on.

Ingredients

  • Google Maps Location History. If you enabled Google to keep track your every step (pun intended; Google Fit - step tracker, wink wink nudge nudge) in the past, you can download it easily here. As of today, you can click setting button located at bottom right corner. Click "Download copy of your all data" and choose "Location History" in JSON format. Download it. This is our past data.
  • places.json. We will fill some locations by getting help from Google Maps. Format should be as follows:
{
  "home" : [32.429264, -112.165769],
  "work" : [36.421965, -112.090632] 
}

I have to prefer json since it is better not to provide location information carelessly (some irony here).

How it works?

  • After you downloaded the data, move it the .json file to the same directory where the code is located, and change its name to data.json.
  • Edit your places.json according to the places that you want to learn how much time you spent at.
  • Now we're ready to run jupyter notebook. You're in the same directory where the code is located and run this on your terminal: jupyter notebook.
  • Hopefully the a web browser will automatically open. If not, copy the link you see in the terminal window to your web browser.
  • Now you should see a notebook named Location-Time-Analysis.ipynb. Open it and run all the code.
  • Done.

Requirements

  • geopy==1.13.0
  • pandas=0.22.0
  • python>=3.6.0

Author

Osman Baskaya ([email protected])

location-spending-time's People

Watchers

Osman Başkaya 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.