60585,-121.858956&sspn=0.006313,0.01133&ie=UTF8&z=16&om=1&
iwloc=addr&mrt=kmlkmz
Just as you can create mashups involving Flickr by using Flickr??™s URL language, you can
create mashups with Google Maps by exploiting its URL structures. Let??™s consider a few examples.
Viewing KML Files in Google Maps
Many of the popular sources for KML (such as http://earth.google.com/gallery/) assume
you will view KML in Google Earth. However, you can display a limited subset of KML in Google
Maps. Consider, for instance, the KML file at the following location:
http://services.google.com/earth/kmz/global_heritage_fund_n.kmz
It can be viewed in Google Maps by passing in the URL of the KML file via the q parameter,
as shown here:
http://maps.google.com/maps?q=http:%2F%2Fservices.google.com%2Fearth%2Fkmz%2Fglobal_
heritage_fund_n.kmz
Hence, in your own web site, you can give the option to your users of downloading KML
to Google Earth or viewing the KML on Google Maps by linking to the following:
http://maps.google.com/maps?q={URL-of-KML}
Connecting Yahoo! Pipes and Google Maps
A specific case of displaying KML files is feeding KML from Yahoo! Pipes into Google Maps.
(I describe Yahoo! Pipes in detail in Chapter 4. For the purposes of this discussion, you need to
know only that Yahoo! Pipes can generate KML output.) Consider, for example, Apartment
Near Something, configured specifically to list apartments that are close to cafes around UC
Berkeley:
http://pipes.
Pages:
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134