This object is in archive! 

getCacheUrlFull return order

Attila Bierbaum shared this problem 7 years ago
Solved

I created an addon for geocaching.hu caches.

Here the cache codes are starts with "GC" prefix as same as gc.com.

In the addon I set the GeocachingData.mCacheUrl property.

My problem in the Locus program : if I click on the gc code of cache (in the cache details) the program redirects to coord.info instead of mCacheUrl

I think it because as same logic as in the getCacheUrlFull function in the sample locusAPI.

How can I override it in the program??? Or may you change it in the next version ???

Thanx

Replies (1)

photo
1

Good day Attila,


thank you for a report of this "problem". It's is correct that current Locus version consider caches that starts with "GC" code, as caches from groundspeak.


Don't you worry, if I made from you small test rabbit? I have updated a code of GeocachingData container to allows define source for caches directly, so Locus will handle them better.


New version of library is published now here: https://github.com/asamm/locus-api-android . Try to add it directly as dependency over gradle.


For your case, use

  1. GeocachingData gcData = new GeocachingData();
  2. gcData.setCacheId("GC1345456", GeocachingData.CACHE_SOURCE_GEOCACHING_HU);


You may validate result by calling gcData.getCacheUrlFull() , which should return wanted URL address.

You will anyway need also new version of Locus Map, so you have to wait on next Beta or Public version to test it if it really works.

Let me please know at least that works above method and mainly add-on API over maven repository. Thanks

photo
1

Hello

Sorry I had not enough free time to spend with it. Iwill try your solution, and I report from it.

Thanks a lot

photo
1

Hello Menion!


I tried it with the fully new asamm locus-android-sample git repo, and it works perfectly !!!

I had some hardness with the jfrog plugin but I solve it :D (just because I new in android development)

I put these code to your generateGeocache() function and got back the correct ...hu url with the getCacheUrlFull() func.

Thanks a Lot

I'll wait for the updated Locusmap

photo
1

Hello,

perfect, glad to hear it. If you want to test it sooner, there is since yesterday a new Beta version: http://docs.locusmap.eu/doku.php?id=manual:about:free_beta_testing

photo
1

Great!


I tested with the beta, it works.

Now I can redirect the users to the cache's logging site

thanks

photo
1

hello!


I have a remark for the new beta : the own caches are seems as new not-found(green-box icon).

In the current play version appears right as an own-cache (star-icon).

The addon is same build from Android studio ....What is the difference ?

photo
1

Hi, are you sure you have defined your name in Locus settings > geocaching? So Locus is able to recognize correctly your own caches.

photo
1

Ahh, so this is the relation....I set it and works :-D

Thanks (I apologize for disturbing you like this)

Replies have been locked on this page!