GCTour / gctour_orig

Automatically exported from code.google.com/p/gctour
1 stars 1 forks source link

enhanced gccode and comment/hint/name in cache description on gps devices #17

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In my patch below I used the stripgc feature to enhance the information visible 
on a older GPSr (gpsmap60 / extrex).
The waypoint name becomes:
9AEA TrR44 (gccode without gc, space, cachetype,size,difficulty,terrain)
And the cache description is very limited on a gpsmap60 so the most important 
information comes first:
gccomment|hint|cachename

@@ -7609,6 +7609,14 @@
    geocache.state = geocache_obj.state;
    geocache.country = geocache_obj.country;    

+   if(GM_getValue('gpxstripgc',false)){
+       geocache.gcid += " 
"+geocache.cacheType.substr(0,2)+geocache.cacheSize[0]+geocache.difficulty.subst
r(0,2)+geocache.terrain.substr(0,2);
+       cacheName = geocache.cacheName;
+       geocache.cacheName = (geocache_obj.comment) ? 
geocache_obj.comment.commentValue + '|' : '';
+       geocache.cacheName += (geocache.hint) ? geocache.hint : 'no hint';
+       geocache.cacheName += '|' + cacheName;
+   }
+   
    // hidden Date
    geocache.dateHidden = geocache_obj.hidden;

Original issue reported on code.google.com by itse...@gmail.com on 13 Oct 2011 at 8:02

GoogleCodeExporter commented 8 years ago
Halte ich eher als Zeitüberholt, aber eine 
Überlegung (um gleich den Typ und die Difficulty|Terrain Einstufung zu 
erkennen):

    geocache.country = geocache_obj.country;    

    /* TEST ANFANG */
        // gpxstripgc durch neue Option tauschen
    if(GM_getValue('gpxstripgc',false)){
        geocache.cacheName = geocache.cacheSize.substr(0,1) + geocache.difficulty.substr(0,2) + "," +  geocache.terrain.substr(0,2) +  " " + geocache.cacheName;
    }
    /* TEST ANFANG */

aus Cachename wird 
zb. M1.1. Cachename => bedeutet: Multi 1.5 1.5 Cachename
zb. T35 Cachename => bedeutet: Tradi 3 5 Cachename

Original comment by gctour.d...@gmail.com on 18 Oct 2011 at 11:04

GoogleCodeExporter commented 8 years ago
Meinte CacheSize nicht CacheTyp

aus Cachename wird 
zb. M1.1. Cachename => bedeutet: Mirco 1.5 1.5 Cachename
zb. S35 Cachename => bedeutet: Small 3 5 Cachename

Original comment by gctour.d...@gmail.com on 18 Oct 2011 at 11:06

GoogleCodeExporter commented 8 years ago
The geocache.gcid field is shown in the gpsmap60 waypoint search field. This is 
very limited on length. 
(http://www.gpsfaqs.org/faqs/garmin/xseries/g60cx/waypoints.html#howbig) 
Therefore GC has to be stripped off and type (2 chars to discriminate between 
Earth (Ea) and Event (Ev) cache types), size, diff, terrain.

The cachename (waypoint description) can only contain 30 chars. So it is nice 
to have the most important information first:
gccomment (user editable)
hint (owner editable)
name (perhaps some information when there is no hint)

Original comment by itse...@gmail.com on 19 Oct 2011 at 12:59