Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
Jakuje opened this issue Dec 5, 2016 · 5 comments
Open

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

Jakuje opened this issue Dec 5, 2016 · 5 comments

Comments

@Jakuje
Copy link
Contributor

Jakuje commented Dec 5, 2016

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?

@GeekNJ
Copy link
Contributor

GeekNJ commented Apr 15, 2017

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.

@magma1447
Copy link
Owner

magma1447 commented Apr 19, 2017

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.

@GeekNJ
Copy link
Contributor

GeekNJ commented Apr 19, 2017

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

@magma1447
Copy link
Owner

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).

@cghove
Copy link
Contributor

cghove commented Sep 22, 2022

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants