Codebase list gnome-maps / e8d82c1
place: Add boolean read-only property for eating & drinking Marcus Lundblad 3 years ago
1 changed file(s) with 10 addition(s) and 0 deletion(s). Raw diff Collapse all Expand all
294294
295295 _getIconName() {
296296 return PlaceIcons.getIconForPlace(this);
297 }
298
299 /**
300 * This property is true for places related to eating and/or drinking,
301 * such as restaurants, cafes, pubs and similar
302 */
303 get isEatingAndDrinking() {
304 return this._osmKey === 'amenity' &&
305 ['bar', 'biergarten', 'cafe', 'fast_food', 'food_court',
306 'restaurant', 'pub'].indexOf(this._osmValue) !== -1;
297307 }
298308
299309 toJSON() {