geo-nearest(1)

geo-nearest1

Geo-nearest

Overview

Usage:

geo-nearest [options] geo-nearest [options] latitude longitude geo-nearest [options] zipcode

Fetch a list of nearest geocaches.

Requires:

A free login at http://www.geocaching.com.

Visit a cache page

and click the "Download to EasyGPS" link at least once so you can read and agree to the license terms. Otherwise, you will not get any waypoint data.

curl

http://curl.haxx.se/

gpsbabel

http://gpsbabel.sourceforge.net/

Options

-c

Remove cookie file when done

-f

Do not report any found or unavailable caches

-n num

Return "num" caches [25]

-s

Output short names for the caches (gpsbabel option)

-u username

Username for http://www.geocaching.com

-p password

Password for http://www.geocaching.com

-o format

Output format, -o? for possibilities [gpsdrive] plus "gpsdrive.sql" for direct insertion into MySQL DB

-S

Alias for -o gpsdrive.sql

-d

For -S, just delete selected records\n"

-t type

For -ogpsdrive.sql, the waypoint type [Geocache]

-D lvl

Debug level [0]

-U

Retrieve latest version of this script

Defaults can also be set with variables in file $HOME/.georc:

PASSWORD=password;

USERNAME=username;

LAT=latitude;

LON=logitude;

NUM=num;

OUTFMT=format; BABELFLAGS=-s

SQLUSER=gast;

SQLPASS=gast; SQLDB=geoinfo;

Examples

Add nearest 50 caches to a GpsDrive SQL database

geo-nearest -n50 -f -s -S

Releases

Unchanged in 2 releases since Debian 3.1 (Sarge).

  1. 3.1–4.0

From gpsdrive 2.09-2.1 in Debian 4.0 (Etch). Parsed by carta from the page's man source.