Tools for computing various statistics related to Geocaching/Opencaching.
 
 
 
Go to file
Tomasz Goliński 08464564ee Add display of cache sizes 2019-11-08 22:50:21 +01:00
.clang-format Initial commit 2019-09-08 19:13:06 +02:00
.gitignore Initial commit 2019-09-08 19:13:06 +02:00
Dolnoslaskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Europe.png Make it easier to support other map backgrounds, added Europe map 2019-09-08 22:22:14 +02:00
Kujawsko-Pomorskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Lodzkie.png Really add all remaining voivodships 2019-09-15 13:45:37 +02:00
Lubelskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Lubuskie.png Really add all remaining voivodships 2019-09-15 13:45:37 +02:00
Malopolskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Mazowieckie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Opolskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Podkarpackie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Podlaskie.png Add two maps of voivodships 2019-09-15 00:46:59 +02:00
Poland.png Initial commit 2019-09-08 19:13:06 +02:00
Poland_big.png Add bigger map of Poland 2019-09-24 14:52:10 +02:00
Poland_relief.png Initial commit 2019-09-08 19:13:06 +02:00
Pomorskie.png Add two maps of voivodships 2019-09-15 00:46:59 +02:00
README.md Update README.md 2019-11-05 21:07:04 +01:00
Slaskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Swietokrzyskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Warminsko-Mazurskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Wielkopolskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
Zachodniopomorskie.png Add remaining voivodships 2019-09-15 13:33:27 +02:00
api.h Another run of clang-format 2019-11-04 21:44:08 +01:00
cache.cpp Add display of cache sizes 2019-11-08 22:50:21 +01:00
cache.h Lambdafy some comparison functions 2019-11-07 18:00:05 +01:00
config_user_example.h Initial commit 2019-09-08 19:13:06 +02:00
debug.cpp Initial commit 2019-09-08 19:13:06 +02:00
debug.h Initial commit 2019-09-08 19:13:06 +02:00
geo.css Add missing 0 width CSS rule 2019-11-04 23:39:44 +01:00
geodb.cpp Another run of clang-format 2019-11-04 21:44:08 +01:00
geostat.cpp Add display of cache sizes 2019-11-08 22:50:21 +01:00
gpx.cpp Silence unused variable/parameter warnings 2019-10-06 02:58:24 +02:00
gpx.h Add parent class Api to OCdb 2019-10-04 00:43:39 +02:00
heat.cpp Exclude mobile and own caches from heatmap. 2019-10-21 14:50:24 +02:00
heat.h Support exponential heat map theme 2019-09-12 14:07:52 +02:00
maps.h Add bigger map of Poland 2019-09-24 14:52:10 +02:00
meson.build Possibility to grab caches which were not found by a certain user 2019-10-04 02:30:17 +02:00
ocdb.cpp Another run of clang-format 2019-11-04 21:44:08 +01:00
ocdb.h Another run of clang-format 2019-11-04 21:44:08 +01:00
okapi.cpp Add display of cache sizes 2019-11-08 22:50:21 +01:00
okapi.h Add date of find to Cache structure. Update OKApi source to grab it. It is not the cleanest solution possible. 2019-11-05 20:39:33 +01:00

README.md

GEOSTAT

Usage

Usage: [-p] [-g file] [-MDHh]
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.

HTML output requires a style sheet. Sample one is included as geo.css.

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

  • Maps of Poland Poland.png and Poland_big.png come from https://pl.wikipedia.org/wiki/Plik:Poland_location_map.svg and are licensed under CC-BY-SA and GNU FDL.

  • Map of Poland Poland_relief.png comes from https://commons.wikimedia.org/wiki/File:Relief_Map_of_Poland.svg and is licensed under CC-BY-SA.

  • Map of Europe Europe.png comes from https://pl.wikipedia.org/wiki/Plik:Europe_location_map.svg and is licensed under PD.

  • Maps of Voivodeships of Poland come from https://commons.wikimedia.org/wiki/File:Podlaskie_Voivodeship_location_map.svg, https://commons.wikimedia.org/wiki/File:Pomeranian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Kuyavian-Pomeranian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Warmian-Masurian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Masovian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Lesser_Poland_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Greater_Poland_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Opole_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Lower_Silesian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Silesian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Lublin_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Subcarpathian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:West_Pomeranian_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:%C5%9Awi%C4%99tokrzyskie_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:Lubusz_Voivodeship_location_map.svg, https://pl.wikipedia.org/wiki/Plik:%C5%81%C3%B3d%C5%BA_Voivodeship_location_map.svg and are licensed under CC-BY-SA.

  • CSS tricks used to render histograms are based on https://css-tricks.com/making-charts-with-css.