Geo::Google::Latitude - Retrieves a Google Latitude Public Location Badge


Geo-Google-Latitude documentation  | view source Contained in the Geo-Google-Latitude distribution.

Index


NAME

Top

Geo::Google::Latitude - Retrieves a Google Latitude Public Location Badge

SYNOPSIS

Top

  use Geo::Google::Latitude;
  my $gl=Geo::Google::Latitude->new;
  my $id="7832225593622256926"; 
  my $badge=$gl->get($id); #isa L<Geo::Google::Latitude::Badge>
  printf "Time: %s, Lat: %s, Lon: %s\n", $badge->point->datetime,
                                         $badge->point->latlon;

DESCRIPTION

Top

Perl Object Interface to the Google Latitude Public Location Badge. In order to enable Google Latitude on your mobile device, download Google Maps Mobile and set the permission to share to the public.

USAGE

Top

  use Geo::Google::Latitude;

CONSTRUCTOR

Top

new

Returns a Geo::Google::Latitude blessed object. If you need to override the API URL you may do so with the optional url parameter.

  my $gl=Geo::Google::Latitude->new;
  my $gl=Geo::Google::Latitude->new(url=>"http://www.google.com/latitude/apps/badge/api");

METHODS

Top

get

Fetches the Google Latitude Public Location Badge from google.com and returns a Geo::Google::Latitude::Badge object initialized with the returned JSON encoded data.

  my $badge=$gl->get($id); #isa L<Geo::Google::Latitude::Badge>

getList

Returns a list of Geo::Google::Latitude::Badge objects with just one HTTP request.

  my @badge=$gl->getList($id1, $id2, $id3); #()
  my $badge=$gl->getList($id1, $id2, $id3); #[]

LIMITATIONS

Top

The getList method has a limit as to the number of badges that can be returned. But, I have know idea what that upper limit would be. The length of a URL is typically limited to 2048 bytes and the few IDs that I have seen are 20 characters long. So, we should be able to support more than 90 IDs in one URL accounting for overhead and comma separators.

BUGS

Top

Log and send to Geo Perl.

SUPPORT

Top

Try Geo Perl.

AUTHOR

Top

    Michael R. Davis
    CPAN ID: MRDVT
    STOP, LLC
    domain=>michaelrdavis,tld=>com,account=>perl
    http://www.stopllc.com/

COPYRIGHT

Top

SEE ALSO

Top

http://www.google.com/latitude/apps/badge, http://www.ruwenzori.net/code/latitude2brightkite/, LWP::Simple, URI, JSON::XS, GPS::Point, Geo::Google::Latitude::Badge


Geo-Google-Latitude documentation  | view source Contained in the Geo-Google-Latitude distribution.