add followup for restaurants

This commit is contained in:
Tykayn 2025-08-09 11:03:56 +02:00 committed by tykayn
parent 7527d5cf6c
commit 63dd364bcb

View file

@ -74,6 +74,8 @@ class FollowUpService
$objects = array_filter($elements, fn($el) => ($el['tags']['amenity'] ?? null) === 'public_bookcase') ?? []; $objects = array_filter($elements, fn($el) => ($el['tags']['amenity'] ?? null) === 'public_bookcase') ?? [];
} elseif ($type === 'playground') { } elseif ($type === 'playground') {
$objects = array_filter($elements, fn($el) => ($el['tags']['leisure'] ?? null) === 'playground') ?? []; $objects = array_filter($elements, fn($el) => ($el['tags']['leisure'] ?? null) === 'playground') ?? [];
}elseif ($type === 'restaurant') {
$objects = array_filter($elements, fn($el) => ($el['tags']['amenity'] ?? null) === 'restaurant') ?? [];
} else { } else {
$objects = []; $objects = [];
} }
@ -289,6 +291,7 @@ class FollowUpService
'manhole' => "Bouche d'égout", 'manhole' => "Bouche d'égout",
'little_free_library' => "Micro bibliothèque", 'little_free_library' => "Micro bibliothèque",
'playground' => "Parc à jeux pour enfants", 'playground' => "Parc à jeux pour enfants",
'restaurant' => "Restaurants",
]; ];
} }
@ -322,6 +325,7 @@ class FollowUpService
'manhole' => 'bi-droplet-half', 'manhole' => 'bi-droplet-half',
'little_free_library' => 'bi-book', 'little_free_library' => 'bi-book',
'playground' => 'bi-emoji-smile', 'playground' => 'bi-emoji-smile',
'restaurant' => 'bi-fork-knife',
]; ];
} }
@ -360,6 +364,7 @@ class FollowUpService
'manhole' => 'nwr["manhole"](area.searchArea);', 'manhole' => 'nwr["manhole"](area.searchArea);',
'little_free_library' => 'nwr["amenity"="public_bookcase"](area.searchArea);', 'little_free_library' => 'nwr["amenity"="public_bookcase"](area.searchArea);',
'playground' => 'nwr["leisure"="playground"](area.searchArea);', 'playground' => 'nwr["leisure"="playground"](area.searchArea);',
'restaurant' => 'nwr["amenity"="restaurant"](area.searchArea);',
]; ];
} }
@ -510,6 +515,7 @@ class FollowUpService
'manhole' => ['manhole', 'location'], 'manhole' => ['manhole', 'location'],
'little_free_library' => ['amenity', 'operator'], 'little_free_library' => ['amenity', 'operator'],
'playground' => ['playground', 'operator'], 'playground' => ['playground', 'operator'],
'restaurant' => ['contact:phone', 'cuisine'],
]; ];
} }
} }