Import tweets into mongo:
mongorestore -d xebia -c tweets --drop dump/xebia/tweets.bson
Commands to prepare collection (already done in previous dump)
db.tweets.remove({ coordinates : null })
db.tweets.ensureIndex({ coordinates : "2dsphere" })
db.tweets.find({}).forEach(function(doc){ doc.date = new Date(doc.created_at); db.tweets.save(doc);})
Maven stuff
Declare jetty into settings.xml
<pluginGroups>
<pluginGroup>org.mortbay.jetty</pluginGroup>
</pluginGroups>
http://localhost:8080/tweets?lat=48.8754071&lng=2.3111512&start=1372154400000&end=137215