Tools for computing various statistics related to Geocaching/Opencaching.
 
 
 
Go to file
Tomasz Golinski 4ee02fd2ee CSS cleanup 2020-01-02 00:16:47 +01:00
.clang-format
.gitignore
Dolnoslaskie.png
Europe.png
Kujawsko-Pomorskie.png
Lodzkie.png
Lubelskie.png
Lubuskie.png
Malopolskie.png
Mazowieckie.png
Opolskie.png
Podkarpackie.png
Podlaskie.png
Poland.png
Poland_big.png
Poland_relief.png
Pomorskie.png
README.md
Slaskie.png
Swietokrzyskie.png
Warminsko-Mazurskie.png
Wielkopolskie.png
Zachodniopomorskie.png
api.h
cache.cpp
cache.h
config_user_example.h
debug.cpp
debug.h
geo.css CSS cleanup 2020-01-02 00:16:47 +01:00
geodb.cpp
geostat.cpp
gpx.cpp
gpx.h
heat.cpp
heat.h
maps.h
meson.build
ocdb.cpp
ocdb.h
okapi.cpp
okapi.h

README.md

GEOSTAT

Sample web interface

A sample web interface to play with the tool is available at http://tomaszg.pl/geo/.

Usage

The main tool is called geostat. It is able to access opencaching.pl via OKAPI or from local database dump maintained by geodb. It can also partially read GPX files, e.g. exported from C:GEO. It produces various statistics (either as text output, or in a HTML form) and renders a heat map of found/not found caches in a selected region. HTML output requires a style sheet. Sample one is included as geo.css.

Usage: geostat  [-p] [-g file] [-qn] [-MDHLTOYh] [-s size] [-m map]
Generate stats from Opencaching data or GPX files.

 * Data source:
	-p	use opencaching.pl
	-u user	user for Opencaching
	-g file	use specified gpx file
	-q	use local SQLite file
	-n	get only unfound caches (works only with SQLite)
 * Output:
	-M	print geographically extreme caches
	-D	print furthest and closest caches
	-H file	render a heat map to a file
	-s n	stamp size for a heat map (default = 15)
	-e	use exponential to flatten the heat map
	-m map	chosen map: Poland, Poland_relief, Poland_big, Europe or a name of voivodeship (default = Poland)
	-L	print all caches
	-T	print D/T matrix
	-O	print owner count for found caches
	-Y	print types count for found caches
	-W	output all data in HTML format
	-h	display this help screen

There is a helper program geodb which manages local SQLite database. It can initialize the database from full data dump or update it according to changelogs grabbed from OKAPI.

Usage: geodb [-i path] [-uh]
Manage local Opencaching database.
	-i folder	initialize database from dump located in given folder
	-u	update database with changelogs grabbed via OKAPI
	-h	display this help screen

Installation

To compile it requires:

To build the project copy config_user_example.h to config_user.h and fill it out (at least API key is needed). Then run meson build; cd build; ninja. You might need to set CXX variable to point to a correct compiler.

Credits