/** *
This demo was an example exercise used for the dataviz workshop run at HEAD Geneva, * in October 2010. More info and other source code can be found on the workshop wiki: * * http://learn.postspectacular.com/Workshop:HEADGeneva *
* *This demo uses the 3rd party Twitter4j library (BSD licensed) to execute a twitter search * and filter tweets with an associated geo location. These tweets are then mapped onto an (untextured) * globe. Additionally a list of reference points/cities will be plotted for better orientation. * * Download the library from here: http://www.twitter4j.org and place the library JAR file into the * "code" folder of this sketch.
*/ /* * Copyright (c) 2010 Karsten Schmidt * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * http://creativecommons.org/licenses/LGPL/2.1/ * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library; if not, write to the Free Software * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA */ import toxi.geom.*; import toxi.processing.*; import processing.opengl.*; final int EARTH_RADIUS = 200; final String SEARCH_QUERY="4sq"; final int TIME_STEP = 1; final int NUM_SEARCHES = 10; // number of ms per day final long DAY_DURATION = 1000*60*60*24; Twitter twitter = new Twitter("user","pass"); HashMap