Aaron Straup Cope > Net-Flickr-Geo-0.72 > Net::Flickr::Geo::GoogleMaps

Download:
Net-Flickr-Geo-0.72.tar.gz

Dependencies

Annotate this POD

View/Report Bugs
Module Version: 0.72   Source  

NAME ^

Net::Flickr::Geo::GoogleMaps - tools for working with geotagged Flickr photos and Google! Maps

SYNOPSIS ^

 my %opts = ();
 getopts('c:i:', \%opts);

 my $cfg = Config::Simple->new($opts{'c'});

 my $fl = Net::Flickr::Geo::GoogleMaps->new($cfg);
 $fl->log()->add(Log::Dispatch::Screen->new('name' => 'scr', min_level => 'info'));

 my @map = $fl->mk_pinwin_map_for_photo($opts{'i'});
 print Dumper(\@map);

 # returns :
 # ['/tmp/GGsf4552h.jpg', '99999992'];

DESCRIPTION ^

Tools for working with geotagged Flickr photos and Google! Maps

OPTIONS ^

Options are passed to Net::Flickr::Backup using a Config::Simple object or a valid Config::Simple config file. Options are grouped by "block".

flickr

pinwin

google

PACKAGE METHODS ^

__PACKAGE__->new($cfg)

Returns a Net::Flickr::Geo object.

OBJECT METHODS ^

$obj->mk_pinwin_map_for_photo($photo_id)

Fetch a map using the Google! Map Image API for a geotagged Flickr photo and place a "pinwin" style thumbnail of the photo over the map's marker.

Returns an array of arrays (kind of pointless really, but at least consistent).

The first element of the (second-level) array will be the path to the newly created map image. If uploads are enabled the newly created Flickr photo ID will be passed as the second element.

$obj->mk_pinwin_maps_for_photoset($photoset_id)

For each geotagged photo in a set, fetch a map using the Google! Map Image API for a geotagged Flickr photo and place a "pinwin" style thumbnail of the photo over the map's marker.

If uploads are enabled then each map for a given photo will be added such that it appears before the photo it references.

Returns an array of arrays.

The first element of each (second-level) array reference will be the path to the newly created map image. If uploads are enabled the newly created Flickr photo ID will be passed as the second element.

VERSION ^

0.72

DATE ^

$Date: 2008/01/28 06:38:28 $

AUTHOR ^

Aaron Straup Cope <ascope@cpan.org>

REQUIREMENTS ^

Sadly, this still requires that you have a command-line version of ImageMagick installed to have the pinwin marker successfully composited on to the map.

The transparency is otherwise not honoured by either GD or Imager. Please for your patches or cluebats...

NOTES ^

All uploads to Flickr are marked with a content-type of "other".

SEE ALSO ^

Net::Flickr::Geo

http://code.google.com/apis/maps/documentation/staticmaps/index.html

BUGS ^

Sure, why not.

Please report all bugs via http://rt.cpan.org

LICENSE ^

Copyright (c) 2007-2008 Aaron Straup Cope. All Rights Reserved.

This is free software. You may redistribute it and/or modify it under the same terms as Perl itself.

syntax highlighting: