steve8x8 / geotoad

Geocaching query tool written in Ruby
https://buymeacoffee.com/steve8x8
Other
28 stars 8 forks source link

added ability to parse gpx track to get all geocaches around it #338

Closed Kr0llx closed 8 years ago

Kr0llx commented 8 years ago

Hey I'm Sören Krollmann and riding bike a lot and love to go out and find caches. since a view years i combine it and go out cycling a track (for a view days) and also search caches. Until now i either made the radius big enough to fit my track in (makes a huge file; 3000+ caches) or is split it up in multiple smaller locations on the track. But by hand this is very time consuming. So i decided to add it to your awesome program.

now with ./geotoad.rb ... --gpxTrack ./track1.gpx -c traditional -y 0.5km -o ./caches1.gpx -O geotoad reads my track and searches for me all geocaches within 0.5km around it.

there fore i used the ability that your program already able to check multiple locations if they are in the form Coord1:Coord2:Cord3 ... so i only had to add a peace of code that generated a list of cords out of a gpx track and set it as '@queryArg'. I implemented also that the checked coordinates are fare enough away from each other so that u not check each centimeter again. The distance between two checked coords depends on the -y option so that if u check 2km around

the track that the coords are more apart than if u only check 0.5km around it.

I attached a screen shot of what u get with my modification. Blue is the track for riding and the red marks are all the caches (traditional) around.

I'm from Germany and my English isn't the best so if there is something not understandable please contact me.

i would be extremely happy if i made it in ur master

screenshot from 2016-05-29 19-51-20

kind regards Kr0llx

steve8x8 commented 8 years ago

You certainly checked https://github.com/steve8x8/geotoad/blob/master/OtherSearches.txt (that's the text version of the corresponding wiki article) and want to make suggestions? It's been there for years... Cheers, S