No description, website, or topics provided.
Ruby JavaScript
Switch branches/tags
Nothing to show
Latest commit 5e1c61f Sep 8, 2011 Louis Rose Removed temporary file.
Permalink
Failed to load latest commit information.
app
config
db
doc
lib/tasks
public
script
test
vendor/plugins
.gitignore
Gemfile
Gemfile.lock
README.textile
Rakefile
TODO
config.ru

README.textile

Heatspots

A super awesome app to display Twitter trends.

Supplying data to Heatspots

New heatmaps can be posted by supplying a name and a set of triples of the form (latitude, longitude, strength). This data is supplied via an HTTP POST to either of the following paths:

/heatmaps.xml
/heatmaps.json

For example, the following curl command adds a heatmap called Testing which contains two heatspots at latitude=2, longitude=4, strength=8 and latitude=1, longitude=2 and strength=3:

curl -v -H "Accept: application/json" -H "Content-type: application/json" -X POST -d '{"heatmap":{"name":"First","heatspots_attributes":[{"lat":2.0,"long":4.0,"strength":8.0},{"lat":1.0,"long":2.0,"strength":3.0}]}}' http://localhost:3000/heatmaps.json