openvegemap icon indicating copy to clipboard operation
openvegemap copied to clipboard

Show all restaurants without diet:vegan/vegetarian as unknown

Open jolesh opened this issue 3 years ago • 6 comments

I think it is important to show all unknown POI's because these are options you might want to try and also people would think that the POI is missing in the database even though it might be already mapped just without a diet:= tag.

jolesh avatar Oct 26 '20 19:10 jolesh

The main reason why we don't do this is because it would cause bad performances (when calling the OSM API and when rendering the markers).

Also the current OSM query we use is "any node or way that has a diet tag", so removing this condition would return every node and way. This means we would need other conditions specifically for this.

Rudloff avatar Oct 26 '20 21:10 Rudloff

Okay I thought the query would be something like: Get all amenity=restaurant/fast_food/cafe/... Get diet:vegetarian and diet:vegan value And then rendering it accordingly.

But your way makes also sense.

jolesh avatar Oct 27 '20 07:10 jolesh

Would it be a suitable solution if we only query the other locations at the highest zoom level? This could at least solve the performance problem.

KristjanESPERANTO avatar Nov 01 '20 09:11 KristjanESPERANTO

Would it be a suitable solution if we only query the other locations at the highest zoom level? This could at least solve the performance problem.

I think that sounds like a good solution. Edit: I don't know why my post is before yours because I posted it as a response.

jolesh avatar Nov 01 '20 09:11 jolesh

I do also believe this feature would be pretty handy, especially for areas which OSM doesn't have (yet) granular information about such places. For instance, in the country I live, only the most important cities have restaurants with detailed information while the rest of the cities don't. This is due to the fact that we don't have yet, although it has been growing, a big mapping community.

In my opinion, implementing this would be something very handy for editors and vegans/vegetarians alike.

ScriptForAll avatar Nov 03 '20 17:11 ScriptForAll

Maybe there's a way to only query for a fixed-size (~30 ? 40 ?) sample of restaurants without the diet tag when zoomed out ? (as an addition to the above improvement)

rouelibre1 avatar Nov 12 '20 03:11 rouelibre1