Restaurants are places where food is served to eat-in or take-away. It is a top-level category within my [[Using Obsidian as a Personal Atlas|personal atlas]], a way to categorize [[Places.base|places]] in my [[Obsidian]] vault.
```base
filters:
and:
- type == link("Place")
- or:
- placetype == link("Restaurant")
- list(placetype)[0].asFile().properties.placetype == "Restaurant"
formulas:
icon: |-
if(icon, icon,
if(list(placetype)[0].asFile().properties.icon,
list(placetype)[0].asFile().properties.icon,
if(list(placetype)[0].asFile().properties.placetype[0].asFile().properties.icon,
list(placetype)[0].asFile().properties.placetype[0].asFile().properties.icon,
null
)
)
)
color: if(visited, "orange", "darkgreen")
views:
- type: table
name: Table
order:
- file.name
- address
- type: map
name: Map
center: ""
coordinates: note.coordinates
markerIcon: formula.icon
markerColor: formula.color
```