# `osmium tags-filter monaco.osm.pbf -R local.txt -o monaco.osm.pbf`

# Most notable landmarks: must have both Wikipedia and Wikidata entries
# AND be a significant feature type
(
  node["wikipedia"]["wikidata"]
  (
    ["historic"="monument"] |
    ["historic"="castle"] |
    ["historic"="fort"] |
    ["tourism"="attraction"] |
    ["tourism"="museum"] |
    ["amenity"="place_of_worship"] |
    ["leisure"="park"]
  )
) |
(
  way["wikipedia"]["wikidata"]
  (
    ["historic"="monument"] |
    ["historic"="castle"] |
    ["historic"="fort"] |
    ["tourism"="attraction"] |
    ["tourism"="museum"] |
    ["amenity"="place_of_worship"] |
    ["leisure"="park"]
  )
)

# Super notable landmarks: has Wikipedia entries in multiple languages
(
  node["wikipedia:en"]["wikipedia:de"]["wikipedia:fr"] |
  way["wikipedia:en"]["wikipedia:de"]["wikipedia:fr"]
)

# Cross-reference with other importance indicators
(
  node["wikipedia"]
  (
    ["tourism:visitors">100000] |    # High visitor count
    ["protection_title"] |           # Protected status
    ["heritage"]                     # Heritage listing
  )
) |
(
  way["wikipedia"]
  (
    ["tourism:visitors">100000] |
    ["protection_title"] |
    ["heritage"]
  )
)

# Your base map features...
way["highway"="motorway"]
way["highway"="trunk"]
way["highway"="primary"]
way["highway"="secondary"]
way["highway"="footway"]
way["building"]
way["natural"="water"]
way["natural"="coastline"]

# Keep nodes that are part of kept ways
node(w)

# Remove unnecessary tags but keep important landmark info
--remove-tags
  *,
  ~highway,
  ~building,
  ~natural,
  ~waterway,
  ~name,
  ~wikipedia,
  ~wikidata,
  ~historic,
  ~tourism,
  ~amenity,
  ~leisure
