Google Map API
Google Map API
6 November/December 2012 Published by the IEEE Computer Society 0272-1716/12/$31.00 © 2012 IEEE
Table 1. A sampling of visualization tools used in data visualization courses.
Tool Description URL
D3.js JavaScript library http://d3js.org
Flare ActionScript library http://flare.prefuse.org
Google Public Data Explorer Online data analysis and visualization program www.google.com/publicdata
InfoVis Toolkit Java library http://ivtk.sourceforge.net
Mathematica Commercial computation and visualization system www.wolfram.com/mathematica
Matlab Commercial numerical-computing environment www.mathworks.com/products/matlab
Many Eyes1 IBM research project www-958.ibm.com/software/data/cognos/manyeyes
NodeXL Excel template http://nodexl.codeplex.com
OpenGL 2 C library for computer graphics programming www.opengl.org
Piccolo2D3 Java and .NET library www.piccolo2d.org
4
Prefuse Java library http://prefuse.org
Processing5 Programming language http://processing.org
Protovis JavaScript library http://mbostock.github.com/protovis
R Statistical-computing software www.r-project.org
Spotfire Commercial tool for business data analysis http://spotfire.tibco.com
Tableau6 Commercial tool for business data analysis www.tableausoftware.com
XmdvTool7 Tool for multivariate data visualization http://davis.wpi.edu/xmdv
So, students can quickly create a cloud-based data to the curriculum. Google Maps API is a set of
visualization. JavaScript classes that let users customize and em-
Google Chart Tools are well documented, and bed Google Maps in their webpages. For example,
there are plenty of tutorials and examples online. users can place markers on Google Maps to visual-
Google maintains an active user forum for ques- ize data points associated with geolocations. Users
tions and answers. Because Google Charts are pro- can also create customized directions.
grammed with JavaScript and embedded in HTML Users can make spatial queries when combining
files, students can easily access the source code of Google Maps API with Google Fusion Tables. That
Google Charts they find on the Web. In contrast, is, through Google Maps API, users can submit a
finding the source code of data visualizations cre- geolocation and radius to a Fusion Table. The table
ated with other tools is often difficult. will then return all the data points in that region,
One benefit of using Google Chart Tools is their which can be displayed on the map. In my experi-
instant brand-name recognition. In my experience, ence, students are particularly excited about the
students are eager to learn these tools because they spatial-query feature and are highly motivated to
see them as cool, cutting-edge technology. Only implement it in their applications.
one student was reluctant to use them, because he Google Maps API is also well documented, with
was skeptical of Google’s privacy protection. plenty of tutorials and samples online for students
However, Google Chart Tools support only 2D to study. There’s also an active user forum for
charts and don’t support drawing graphs. They’re questions and answers.
good for customizing the chart types they already Google Maps API is a free service but has some
support but aren’t suitable for creating new types technical restrictions. For example, a quota exists
of charts. So, they’re more suitable for information on the number of queries a user can submit to
visualization courses than for scientific visualiza- Google Maps services per day and per second. Users
tion courses. In addition, Google often replaces can raise the quota with paid subscriptions, but the
tools with new ones. For example, the company vast majority of users rarely reach the default quota.
renamed the original Google Charts as Google Im-
age Charts and then deprecated them after a few Course Design
years. Instructors should expect frequent changes I taught a Data Visualization course in fall 2011.
from Google. It was a senior-level elective course with 20 un-
dergraduates. Among them, 18 students were
Google Maps API computer science majors, one was a mathematics
Google Chart Tools only support basic map charts. major, and the other one was a philosophy major
To address this problem, I added Google Maps API (with a computer science background). The course
8 November/December 2012
thusiastic about the projects they created. So, they
were more engaged in the class. Some part-time
students told me that they planned to integrate
Google Chart Tools and Google Maps API into
their work projects. One student actually did it
during the course of the class, with positive feed-
back from his supervisor. I feel that the students’
increased interest was due largely to Google Chart
Tools and Google Maps API, because most of the
other course materials were similar to those in the
previous classes.
variety of visualizations by combining these two System: A Specification,” ver. 4.3 (Core Profile),
toolkits. As I mentioned before, both are free, Khronos Group, 2012.
and students could continue to use them after 3. B.B. Bederson, J. Grosjean, and J. Meyer, “Toolkit
the course. Compared with other free tools, they Design for Interactive Structured Graphics,” IEEE
have better documentation and more active user Trans. Software Eng., vol. 30, no. 8, 2004, pp.
communities. 535–546.
More important, Google Chart Tools and Google 4. J. Heer et al., “Prefuse: A Toolkit for Interactive
Maps API can be easily connected to online data Information Visualization,” Proc. 2005 ACM Conf.
sources such as Google Spreadsheets and Google Human Factors in Computing Systems (CHI 05), ACM,
Fusion Tables, creating a powerful suite of tool- 2005, pp. 421–430.
kits for data analysis. This ability is a significant 5. B. Fry, Visualizing Data, O’Reilly, 2007.
strength of the Google tools but is lacking in 6. C. Stolte, D. Tang, and P. Hanrahan, “Polaris: A
other free visualization tools. For example, con- System for Query, Analysis, and Visualization of
necting Processing programs with online data Multidimensional Relational Databases,” IEEE Trans.
sources is more difficult than using the Google Visualization and Computer Graphics, vol. 8, no. 1,
tools. 2002, pp. 52–65.
Students seem more motivated to learn Google 7. M.O. Ward, “XmdvTool: Integrating Multiple Methods
tools than other data visualization tools. Part of for Visualizing Multivariate Data,” Proc. 1994 IEEE
the reason is Google products’ reputation. Another Conf. Visualization (Vis 94), IEEE, 1994, pp. 326–333.
reason is the abundance of documents, tutorials, 8. W. Schroeder, K. Martin, and B. Lorensen, The
and samples of Google Charts and Google Maps Visualization Toolkit, 4th ed., Kitware, 2006.
on the Web. 9. C.A. DePaolo and D.F. Robinson, “Café Data,” J. of
From a teaching perspective, Google Chart Tools’ Statistics Education, vol. 19, no. 1, 2011; www.amstat.
big drawback is the lack of support for drawing org/publications/jse/v19n1/depaolo.pdf.
graphs. Instructors can remedy this by introducing
Processing or the Java Universal Network/Graph Ying Zhu is an associate professor in Georgia State Univer-
Framework (JUNG; http://jung.sourceforge.net). sity’s Department of Computer Science and the director of
So, Google Chart Tools, Google Maps API, and the department’s Hypermedia and Visualization Lab. Con-
Processing (or JUNG) constitute a comprehensive tact him at yzhu@cs.gsu.edu.
set of toolkits for students to create interactive
data visualizations. Contact department editors Gitta Domik at domik@
uni-paderborn.de and Scott Owen at sowen@gsu.edu.
References
1. F. Viegas et al., “ManyEyes: A Site for Visualization
at Internet Scale,” IEEE Trans. Visualization and
Computer Graphics, vol. 13, no. 6, 2007, pp.
1121–1128. Selected CS articles and columns are also available
2. M. Segal and K. Akeley, “The OpenGL Graphics for free at http://ComputingNow.computer.org.