+Megalodon Posted February 9, 2021 Share Posted February 9, 2021 I am using GSAK and in a self programmed macro a am requesting a GC code and it's status: $data = GcApi2("geocaches/$codeGC?fields=status,referenceCode","GET") If the request is for a geocache code (I used 'GC5O234' here) that has been archived already and the GC code contains an 'O' (the letter !) like the one I used (GC5O234), the return code is not ok. The API comes back with the response: status:archived and referenceCode=GC50234, so the letter 'O' I used when requesting was cachnged to '0' (the number). I would have expected, that I get the status of GC5O234, not the one from GC50234. The same behavior I realized with GC codes containing an 'S', the result is the used code by the API ist '5' nad not 'S' Why this correction in the API response ? Quote Link to comment
+HHL Posted February 9, 2021 Share Posted February 9, 2021 (edited) GcCodes containing the letters ISOUL are not valid Geocache codes. Edited February 9, 2021 by HHL Quote Link to comment
+Megalodon Posted February 10, 2021 Author Share Posted February 10, 2021 ok, that's a reason - thank you for your answer, HHL ! Quote Link to comment
+Corfman Clan Posted February 19, 2021 Share Posted February 19, 2021 For reference codes, letter O is to be replaced with digit 0 and letter S is to be replaced with digit 5. This is all documented at Geocaching API (Groundspeak.com) Quote Link to comment
+Corfman Clan Posted February 19, 2021 Share Posted February 19, 2021 On 2/9/2021 at 2:22 PM, HHL said: GcCodes containing the letters ISOUL are not valid Geocache codes. Not quite true. See my previous response. Quote Link to comment
+ecanderson Posted February 23, 2021 Share Posted February 23, 2021 No, true. The article says "The following pseudo code shows how to perform the conversion..." The conversion MUST be done on the client side. Sending non-base31 characters will cause issues due to invalid objects. The server doesn't do this for you, hence HHL is correct in his statement. 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.