Git Product home page Git Product logo

howl's Introduction

Howl, a visualizer for the Yelp! academic dataset

by Peter Hajas and Michael O'Keefe

Troy, NY as visualized by Howl

(Troy, NY as visualized by Howl)

Troy, NY as visualized by Howl with Google Maps underlay

(Troy, NY as visualized by Howl with Google Maps underlay)

About

Howl is a simple python tool for visualizing location reviews around your town.

The more red/white a point is, the better the reviews.

Howl requires Heatmap.py, the Python Image Library and a recent Python version.

Howl was designed for use with the Yelp! Academic Dataset

Usage

Simply run Howl with a city, state and an image width

./Howl.py Troy,NY 1024 yelp_academic_dataset.json

or with ALL as a location, to generate an image for the entire dataset:

./Howl.py ALL 1024 yelp_academic_dataset.json (this will probably take a while)

You can also run Howl with just the state: ./Howl.py NY 1024 yelp_academic_dataset.json

If you want to specify the Google Maps type, you can do so after the yelp dataset location: ./Howl.py NY 1024 yelp_academic_dataset.json roadmap

The options are roadmap satellite terrain or hybrid.

Howl will generate images and KML file for your location. It'll save them in the current working directory, like this:

Troy,NY_nomap.png, Troy,NY_map.png, Troy,NY.kml or ALL.png

Where the nomap files have no Google Maps underlay, and the map files do.

Open Howl KML files in a tool like Google Earth to visualize reviews.

It's really neat!

Legal

Howl is Copyright 2011 Peter Hajas and Michael O'Keefe. It's BSD licensed. The full text of the license can be found in Howl.py.

The work in Howl does not imply endorsement by past, current or future employers.

howl's People

Contributors

peterhajas avatar

Stargazers

Michael O'Keefe avatar

Watchers

Michael O'Keefe avatar James Cloos avatar

howl's Issues

Thread the map creation processes

The map creation processes right now take up quite a bit of time. So, thread the two map creation processes (the heatmap and the Google Maps underlay) and you'll be all set.

Thread JSON parsing

Thread the parsing of the JSON file somehow. This is going to be signifcantly more complicated than the drag-and-drop parsing of the map generators.

"ALL" option breaks everything ever

So, the "ALL" option, as you might suspect, makes the program unhappy, since we've picked an arbitrary zoom level. My computer flat-out kills the program after about 30 seconds. This probably will be solved with the rewrite of sizing.

Fix the sizing issue

So right now, this version of Howl sizes kinda arbitrarily based on a sorta good zoom level...meaning your image could be huge or tiny, depending on the area you're covering. It just totally ignores the "size" argument at the moment. We should fix that. Maybe figure out a good zoom level algorithmically, since we need to ask Google Maps for images at that zoom level specifically?

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.