mirror of
https://forge.chapril.org/tykayn/osm-commerces
synced 2025-10-04 17:04:53 +02:00
add followup for restaurants
This commit is contained in:
parent
7527d5cf6c
commit
63dd364bcb
1 changed files with 6 additions and 0 deletions
|
@ -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'],
|
||||
];
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue