+Cryptid Posted February 6, 2021 Share Posted February 6, 2021 I’m trying to find out if it’s possible do a search for a word in all logs in an area? My idea is to look for the word Pathtag to see if anyone dropped one recently in a geocache nearby. I imagine that GSAK has this, but I’m not near my desktop computer for a while. Is there a GSAK type app available? Quote Link to comment
+ecanderson Posted February 6, 2021 Share Posted February 6, 2021 " Is there a GSAK type app available? " For what? Your phone? GDAK was once available, but I don't know if had anywhere near the slice and dice ability of GSAK. Quote Link to comment
+Cryptid Posted February 7, 2021 Author Share Posted February 7, 2021 I still use GSAK, yeah, I’m old school, GPS user here, been caching since the load every geocache and print out the geocache page days. But this week I’m away from home on a trip, I’m always on the lookout for pathtags, so I was wondering if there was a GSAK type App for IPhone. When I get home I cab GSAK this query, I have the Macro for it. I didn’t get to prepare for this trip tho. Quote Link to comment
+Hügh Posted February 7, 2021 Share Posted February 7, 2021 (edited) I'm sure that you could accomplish this using GSAK. But since I don't use/have GSAK, here is an alternative. You could run a Pocket Query for caches in your area, and then download the .gpx. If you open in up in a text editor (Notepad, Notepad++ if you're on a computer; there are probably equivalent apps for your phone too); you can just do a Ctrl-F search for the term "pathtag", and then scroll up to figure out which caches that log was posted on. We can see that in geocache "An Ammo Can for Cuddlefish" by hollyburn, the fourth-to-most-recent finder (kinemed) wrote that they "Left a Cuddlefish Pathtag." Obviously this isn't the best solution. For one, it only searches the five most recent logs on every cache (but if you're looking to collect Pathtags this may actually be beneficial, since Pathtags left "many finds ago" may already be taken.) Also, you'll probably want a computer (rather than a phone) to do this, but it can be done. Edited February 7, 2021 by Hügh 1 Quote Link to comment
+Viajero Perdido Posted February 7, 2021 Share Posted February 7, 2021 Anybody here know XSLT? It's an incredibly hideous programming language (sort of) that could make short work of this with just a few lines of code. I'm not volunteering, sorry, and to discourage requests, my rates will shock you. Been there, never going back. GPX + XSLT = result + AAAGH! 1 1 Quote Link to comment
+Hügh Posted February 7, 2021 Share Posted February 7, 2021 25 minutes ago, Viajero Perdido said: Anybody here know XSLT? It's an incredibly hideous programming language (sort of) that could make short work of this with just a few lines of code. I'm not volunteering, sorry, and to discourage requests, my rates will shock you. Been there, never going back. GPX + XSLT = result + AAAGH! That sounds... horrifying. I'll leave it to you to implement that... Personally, I would do this in JavaScript. These days, JavaScript can literally* do anything. const xml = (new DOMParser()).parseFromString(/* .gpx XML here, in one big string */, "text/xml"); xml.querySelectorAll("log").forEach(log => { if (log.querySelector("text")?.textContent.toLowerCase().indexOf("pathtag") >= 0) { console.log(log.parentElement.parentElement); // perhaps one more .parentElement is necessary } }); 1 Quote Link to comment
+Hügh Posted February 7, 2021 Share Posted February 7, 2021 (edited) ...in fact, I did it. Upload a .gpx of the geocaches in your area. It'll find all the logs that reference Pathtags, and display the log (as well as the geocache that the log was posted on) in a nice table. The tool runs entirely in your browser; it will not send the .gpx over to my server (I don't have the bandwidth for that!) It is also terrible. I make no guarantees—it may miss some caches (though I will try my best to update it over the new few days.) Edited February 7, 2021 by Hügh 1 1 Quote Link to comment
+Viajero Perdido Posted February 7, 2021 Share Posted February 7, 2021 Hire this güy. 2 Quote Link to comment
+Cryptid Posted February 7, 2021 Author Share Posted February 7, 2021 That is a great idea. Thank you. Quote Link to comment
+TeamRabbitRun Posted February 7, 2021 Share Posted February 7, 2021 14 hours ago, Viajero Perdido said: Hire this güy. Upvoted the typed joke, not the comment. 1 Quote Link to comment
+NYPaddleCacher Posted February 10, 2021 Share Posted February 10, 2021 On 2/6/2021 at 10:13 PM, Viajero Perdido said: Anybody here know XSLT? It's an incredibly hideous programming language (sort of) that could make short work of this with just a few lines of code. I'm not volunteering, sorry, and to discourage requests, my rates will shock you. Been there, never going back. GPX + XSLT = result + AAAGH! Yes, I've done a fairly substantial amount of XSLT programming, and yes, it's quite hideous. I'm primarily a java programmer so I've created some java objects that can be used to map the GPX XML into a java model, then I can transform that into other formats (including a csv file format, or an excel spreadsheet) , store data into a relational database or index cache data into a search index. Quote Link to comment
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.