greasemonkey-geocaching-projectgc icon indicating copy to clipboard operation
greasemonkey-geocaching-projectgc copied to clipboard

The bookmark lists from the new page do not contain Map button

Open Jakuje opened this issue 8 years ago • 5 comments

The links from the new fancy page

https://www.geocaching.com/account/lists

do not contain the GUID in URL so the Map buttons are not shown.

Is there any possibility to convert the BM code (ex. BMJMDH = BM+base31(id_later)) code or the ListID (ex. 144758) in the edit links into the GUID (588d91f9-3575-4f34-8ec4-d0c75d6a5473) in the API for getting the bookmark list or get the list from the any ID above?

The second problem is showing the links on non-shared lists -- PGC shows only "0 caches" without any error. Is it possible to get private lists and show them privately or should I remove these links?

Jakuje avatar Dec 05 '16 21:12 Jakuje

Now that GC has made the new page the default bookmark list page, this should be bumped up in priority to come up with a viable approach.

GeekNJ avatar Apr 15 '17 14:04 GeekNJ

The numeric ListId can be converted into a BM-code (or pr-code, or gc-code). The opposite direction is also possible. But I do not believe that there is a mathematical connection to the GUIDs. PGC aren't aware of the connection either.

The API has its documentation here: https://api.groundspeak.com/LiveV6/Geocaching.svc/help From what I can see, the GUID is needed to fetch a bookmark list.

Sadly I don't see any solution to this.

magma1447 avatar Apr 19 '17 11:04 magma1447

Is it an option, even if inefficient, to retrieve all bookmarks for this user and match on names to get the necessary info?

GeekNJ avatar Apr 19 '17 12:04 GeekNJ

I guess it would be possible, though not too fancy.

It should then be a separate API call so it doesn't delay the rest, since it will add an api call to yet another host.

Is this listview only available for my own lists? If so, the Geocaching LIVE api method GetBookmarkListsForUser should be used (via Project-GC which has the token).

magma1447 avatar Apr 19 '17 12:04 magma1447

Haven't looked to much into this feature, but shouldn't it be enough to: change

} else if (path.match(/^\/bookmarks\/.*/) !== null) {
            Page_Bookmarks();

to

} else if (path.match(/^\/plan\/lists\/.*/) !== null) {
            Page_Bookmarks();

And instead of the looking for the guid, to split and use the "pm" part of either the list id or url ? image

cghove avatar Sep 22 '22 21:09 cghove