Return to Project-GC

Welcome to Project-GC Q&A. Ask questions and get answers from other Project-GC users.

If you get a good answer, click the checkbox on the left to select it as the best answer.

Upvote answers or questions that have helped you.

If you don't get clear answers, edit your question to make it clearer.

0 votes
440 views
in Miscellaneous by Flyvholm (190 points)

2 Answers

0 votes
So this requires finding all the currently active caches within an area (3 Danish counties to be exact).

There is a new API method GetNumCachesInArea which may just do it (find all the caches the user has found in the areas, subtract away any that are currently disabled or archived, then compare it against the number that this method returns.
by mole125 (Expert) (21.1k points)
I suspect you are trying to write a all caches in an area checker. From this checker and the API question
I have written one the weekend http://project-gc.com/Tools/Challenges?edit&scriptId=854
This challenge is unfortunate not possible because part of the island is in the same county as areas outside
0 votes
Unfortunately it is still impossible. I i understand the challenge correctly. All traditional on Amager
 
The problem is that the northern part of the island is in København county according to PGC. It is the same county as the rest of København not on the island.
 
 
I don't know it the county map is correct for PGC. I guess it is taken from from administration level on openstreetmap 
by Target. (Expert) (104k points)
Out of curiosity, would the new API function work with a polygon instead of a county?
No. That method don't exits
Difference is that to count the number in a county is an fast SQL query.
To check in a polygon requiter a time consuming check if the coordinates is inside that polygon.
...