Chapter 3. Mashing Up Google Maps |
3.1. Hacks 1728: IntroductionIn music, when you create a new song by taking the melody from one song and the lyrics from another, it is called a mashup . A lot of times things go poorly, but now and then the results are stunning. What happens when you take pieces from two web sites and mix them together? You get a Web 2.0 mashup. The Web is moving from a collection of disconnected web sites to a ubiquitous computing platform. This new reality is often referred to as Web 2.0 . In the beginning, we had static web sites with a few links between them. This evolved into dynamic content and data-driven sites. The next step has been using the web as a platform. eBay is a useful site for buying and selling trinkets, trash, or treasure . In that role, it is what might be called "Web 1.5." But eBay is also a platform. There is a whole ecology that has built up around eBay that uses the platform in ways that were not initially intended by the programmers. Amazon and Google Search have also become platforms. Amazon, eBay, and Google (not to mention Flickr, del.icio.us, and many more) have created public Application Programming Interfaces (APIs) that allow anyone to mix and match information from one site with information from another. The missing piece in the ecology of open web APIs has been location. Nearly everything we do, on the Web or off, has a location. Everything we touch, write about, read, think, or work on has to happen somewhere. Everything has a geospatial component. Perhaps the geospatial component of some things is irrelevant. Do you really care where you were when you remembered to add dish soap to your shopping list? Yes! We are the species that looks for patterns, and where we are, and where we have been, is one of the strongest sources of pattern in our lives! We are able to learn huge amounts from rooting through other people's trash, er, treasureand we can learn similar amounts by analyzing the debris of our passing as recorded in position. At the Where 2.0 conference in San Francisco in June of 2005, Tim O'Reilly explained his fascination with Paul Rademacher's Housing Maps site (http://www.housingmaps.com), described in "Find a Place to Live" [Hack #23] : "Google Maps with Craigslist is the first true Web 2.0 application, as neither of the sites was involved…. A developer put it together. Hackers are teaching the industry what to do." Google Maps brought location into the world of open APIs, and the results have been stunning! The result brilliantly demonstrates the elegance of the Web 2.0 concepta brave new world in which hackers can combine open standards and open APIs in novel ways to create new sites and services that fill a need or are sometimes just plain cool. Mixing it up with data or code from multiple sites is the heart of the Web 2.0 experience. These mashups are leading the way to a Web that allows each of us to author our unique experiences of the Web, and to share those experiences with others. In this chapter we explore just a few of the nearly countless Google Maps mashups that have come into existence in just a few months. |
Hack 17. Map the News
See where it happened with BBC News and Google Maps . Human beings have spent most of their time in small groups of 100-odd individuals, and our information-processing abilities came from those experiences, not from our current world. If we want to keep track of disturbances in Denmark, fog in Finland, elections in Istanbul, and war all over, we need tools to help us: assisted cognition. At http://boneill.ninjagrapefruit.com/wp-content/bbc/newmaps/ you can see the locations associated with the last 12 hours of BBC news, as shown in Figure 3-1. As with most cartographic efforts, there is the nearly inevitable, but still regrettable, focus on just one placeso the last 12 hours of BBC news will generally be more interesting if you prefer news of the British Isles. Clicking on the markers brings up an information window like that shown in Figure 3-2. This includes the lead from the story, as well as date and time information and a link to the full story. As we can see, human interest and soft news can make an appearance! This hack is possible because, well, the BBC rocks. They have decided that their responsibility to the public trust means they need to open their content to the public. See http://backstage.bbc.co.uk/ for data and ideas so that you can "build what you want using BBC content." This is the heart of the Web 2.0 conceptthe idea that open APIs and open formats allow us to make more use of and draw richer connections between the vast amounts of information that are already out there on the Internet. Figure 3-1. Geolocations for the last 12 hours of BBC News
Figure 3-2. Not all geolocated news is created equal
In 2003, the BBC announced plans to open their archives of radio and television programs for non-commercial use. Its intent is good, but sadly there are issues that must be worked out. Ben Hammersley wrote a stirring call to action for the Guardian at http://www.guardian.co.uk/online/story/0,,1522351,00.html. The archive, Ben writes , "is a vault of the most important public culture of the past three generations. It is a gift for the future that is so far-sighted, and so much a good thing, that it is the duty of the BBC and, especially , the government to follow through." What's more, "[d]igital technology not only makes the Creative Archive possible, but by doing so makes it a moral imperative." Mapping the news is an example of something we can do now, with just the textual content. Imagine the possibilities of geocoded audio and video! As Ben's article concludes, "Now that we can, we must." |