Skip to content
This repository has been archived by the owner on Feb 28, 2024. It is now read-only.

Favorites

Jan Škrášek edited this page Sep 25, 2018 · 5 revisions

Favorites module manages user's favorite places.

See favorites module api-doc.

Working with favorites module requires enabled user-data.

Favorites module provides simple storage for favorite place IDs. This module is intended to be used with Places module. You can combine getFavoritesPlaceIds with getPlacesDetailed to fetch all user's favorite places.

sdk.favorites.addToFavorites(place.id)
sdk.favorites.removeFromFavorites(place.id)

sdk.favorites.getFavoritesPlaceIds() // returns List<String>
sdk.favorites.isPlaceFavorite(place.id) // returns Boolean
Clone this wiki locally