NAME

CGI::Wiki::Plugin::GeoCache - deprecated, upgrade to OpenGuides 0.42+ instead

DEPRECATION NOTICE

This module is obsolete as of OpenGuides 0.42. Please upgrade your OpenGuides installation if you haven't already.

DESCRIPTION

Makes links to http://www.geocaching.com/ from any CGI::Wiki node with latitude and longitude data.

SYNOPSIS

    use CGI::Wiki;
    use CGI::Wiki::Plugin::GeoCache;

    my $geocache = CGI::Wiki::Plugin::GeoCache->new;

    my $link = $geocache->make_link(
			latitude  => $latitude,
			longitude => $longitude,
			link_text  => "Look for nearby geocaches";
		);

METHODS

    my $link = $geocache->make_link(
			latitude  => $latitude,
			longitude => $longitude,
			link_text  => "Look for nearby geocaches";
		);

$latitude and $longitude should be extracted from the metadata for a node in the wiki script. If $latitude is "51.00000" and $longitude is "-7.00000", this method will fill $link with a URL of the form:

<a href="http://www.geocaching.com/seek/nearest_cache.asp?origin_lat=51.00000&origin_long=-7.00000">Look for nearby geocaches</a>

You'll then need to pass $link as a TT variable to your templates.

AUTHOR

Earle Martin (EMARTIN@cpan.org).

COPYRIGHT

Copyright (C) 2003-4 Earle Martin.

This module is free software; you can redistribute it and/or modify it under the same terms as Perl itself.

CREDITS

Huge respect to Kate Pugh (KAKE) for the fantastic piece of work that is CGI::Wiki. Thanks also to Ivor Williams (IVORW) for the help he gave whilst I was writing this module.