Skip to main content
Topic: Some caches missing on live map (Read 254 times) previous topic - next topic

Some caches missing on live map

Hi

I'm not sure I have understand the "Live map" correctly.

I have this picture in Geooh Go and in the official app.
Why are there missing caches in the map from Geooh Go? I have no filter set - only selected to not show found caches in Live map

/Picht


Re: Some caches missing on live map

Reply #2
Hi

"Clear map on refresh" setting is enabled when I did the test...

/Picht


Re: Some caches missing on live map

Reply #4
Yes


Re: Some caches missing on live map

Reply #6
Here is a video and screenshots of the settings

Re: Some caches missing on live map

Reply #7
How many caches does Geooh have after the refresh? If 300, then that's the limit. If there are more retrieved, Geooh starts removing those furthest away from your location. My guess is the official app removes the furthest from center of map shown. I'll have to think about this and what's best... whether to show more around your location or map center. The simplest thing is to do what the official app does so there are no questions as to why it's different. Some will like it one way, others the other way.

Re: Some caches missing on live map

Reply #8
After the refresh it has 300 caches.

My location is further north/west of the caches shown in the pictures. But the caches missing are in the middle and not the ones furthest away?

Re: Some caches missing on live map

Reply #9
Looking into the code I realize probably what's happening... Geooh is using the API to get caches within the map bounds (ignoring your location), but stops after the 300 limit is reached. My guess is the API starts returning caches NOT radiating out from the bounds center, but from the top of bounds downward. So that means to replicate the official is to ignore the limit during retrieval, then throw the extra away from the center which would result in the same as the official app... but at the expense of downloading more caches than needed being much slower than the official. I wish their API operated like their app.

Another thing for me to ponder on what's best. Probably not use their bounds API search and instead use API center and radius of the bounds. That way the 300 limit works and retrieved caches similar to the official. Just more work for me.

Re: Some caches missing on live map

Reply #10
Hi

I'm not sure about the API returning caches from the top to the bottom.
This would mean that the missing caches would be in the bottom, but they are in the middle.

I'm quite sure the official app is getting caches using a circle with the center in the center of the screen. This should be fairly easy to do the same?

/Picht


Re: Some caches missing on live map

Reply #12
Approx N55 37.750 E012 36.000

Re: Some caches missing on live map

Reply #13
When using the official app and zooming out in a cache dense area the resulting caches on the map always create a circle.
And them I'm sure that within this circle all caches are shown.


Re: Some caches missing on live map

Reply #14
I revamped the code for the Live map (and other maps actually) to not use the API bounds call, but to find the center of the bounds and then a radius matching the bounds to use a different API call to search for geocaches. The end result is that Geooh now more closely follows how the official app displays its live map. I think in the long run this makes Geooh a better app.

The changes are in version 13.3.0 and waiting for Google to release the app.