Skip to content

Commit 64a17f1

Browse files
committed
gazetteer: restrict operator for amenity to restaurant and fuel
1 parent fb3da54 commit 64a17f1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

output-gazetteer.cpp

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,9 @@ void place_tag_processor::copy_out(osmium::OSMObject const &o,
364364
} else if (!names.empty()) {
365365
bool first = true;
366366
// operator will be ignored on anything but these classes
367-
// (amenity for restaurant and fuel)
368367
bool shop = (place.key == "shop") ||
369-
(place.key == "amenity") ||
368+
((place.key == "amenity")
369+
&& (place.value == "restaurant" || place.value == "fuel")) ||
370370
(place.key == "tourism");
371371
for (const auto entry: names) {
372372
if (!shop && strcmp(entry->key(), "operator") == 0)

0 commit comments

Comments
 (0)