Favorite Location
A location the member has a favorite relationship with, joined with the location's own data - the Locations API's replacement for the legacy VerifiedClubs list (Facility). Returned by Locations.getFavorites and by every favorite mutation.
Favorites mix gyms and retail stores: use isFitness wherever only gyms count. The list also holds excluded and muted locations - favoriteType is LocationFavoriteType.FAVORITE only for an active favorite.
Constructors
Properties
Address line 1.
Address line 2.
The location's category code - "FITNESS" for gyms and clubs, "RETAIL" for stores - or null when it has none. A member's favorites mix both; use isFitness where only gyms count.
Minimum dwell in minutes for a visit to count, or null when the location defines none.
Typed relationship; LocationFavoriteType.UNRECOGNIZED for codes this SDK version does not know.
The verbatim wire code, kept so no server state is lost when favoriteType is LocationFavoriteType.UNRECOGNIZED.
Geofence radius in meters, or null when the location defines none.
Whether this is a fitness location (a gym or club) - the only kind that earns gym visits, can be monitored for automatic visits and should be offered for self-reports. A location backed by a legacy club counts as fitness even when the server sent no category, because only fitness locations are enrolled as clubs.
Id of the legacy VerifiedClubs record this location maps to, or null when there is none.
Global id of the location as a GUID string; the server sends the all-zeros GUID when upstream has none.
Canonical location id - the handle for removeFavorite, muteFavorite and unmuteFavorite.
Location display name (may be empty, never invented).
ISO-8601 last-modification timestamp.
Raw id of the map pin image, or null.
Resolved URL of the map pin image, or null when the location has no pin.
Postal code.
Two-letter state code, e.g. "NJ".
Whether the location supports guest passes.