Giter VIP home page Giter VIP logo

social_distance's Introduction

social_distance

Use Google Public popularity data to check if people adhere to social distancing

requirements: all the requirements in requirements.txt a file database.txt that has a single link to a postgresql database a file api_keys.txt with some Google Console API Keys with Maps API enabled (you have 5000 free requests per month, we are trying to get Google to give us more)

clock.py runs a service that regularly calls the API places.py has a Google-Cloud-API-call-func that gets called by clock.py. the result of this function is saved to a database.

app.py is the Web-Service that currently runs on Heroku and supplys DataWrapper with the data plot.py is called by app.py to get the data out of the database and into a nice table that is then parsed as csv in app.py

In places.py you have to exchange the place ids for the ones that you want to query. This is quite challenging because not all places feature popularity counts. Its best if you check Google Maps for places that have popularity counts, and then use this page to get the ID of the place: https://developers.google.com/places/web-service/place-id?hl=de This is also not trivial, because sometimes there are multiple places with the same name and only one has popularity data.

social_distance's People

Contributors

pkreissel 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.