Hi, I am trying to count how many restaurants have been added in Rome. In the majority of cases restaurants seem to be added as nodes and tagged as amenity=restaurant, but sometimes they are also added as polygons and tagged as either amenity=restaurants or building=restaurants. If I union both nodes and polygons, may I double-count some restaurants? I mean, is it possible to find the same restaurant added both as a polygon and as a node within that polygon? If this is the case, any idea how to remove duplicates after union the results? Thanks, Jacopo asked 30 Dec '18, 19:59 jprimav aseerel4c26 ♦ |
Not sure about the polygons and nodes, but to filter possible double ones you could compare them by name & address, so let's say 'for each result on the whole list, if address & name are the same then delete one'.
Note that it is an "error" to map the same restaurant as node and polygon. I expect the the number of such errors is small, but if they appear, they should be fixed in the original data.