Chapter 14 — Merging with Flickr Photos 285
Again, using the REST interface, a URL requests the XML document containing the infor-
mation about the photo:
http://maps.mcslp.com//examples/ch14-02flickrproxy.pl?method= ;
flickr.photos.getInfo&api_key=XXX&photo_id=24910903
The preceding returns a hefty XML document:
originalformat=”jpg”>
There are two portions of this document that you are particularly interested in. The first is the
main photo information (within the
this information to enable you to embed a thumbnail of the photo within your info window.
The second is the
Note the use of the rawattribute to a
value is a “flattened” version, used internally by Flickr, and is also the version you would use
when searching for a specific tag.
The bulk of the XML generated by Flickr in this process is going to be parsed by an XSL
Transformation.