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