Page MenuHomePhabricator

Filters for which types of items are shown or hidden on the Nearby places map
Open, LowPublicFeature

Description

Feature summary (what you would like to be able to do and where):
The restored Nearby feature is very useful. It would be much more useful if one could customize which types of items it displays, for example to hide items about transport like railway stations.

Use case(s) (list the steps that you performed to discover that problem, and describe the actual underlying problem which you want to solve. Do not describe only a solution):

I think the most common use-case is to learn more about known places as well as discover unknown interesting places, for example when visiting a new city. In such cases, it would be useful to hide various types of items and these could even be hidden by default. The fewer and the more relevant items there are on the map, the more useful this feature becomes. Currently, it can be cluttered with lots uninteresting items making it difficult to discover relevant items and even to tap on an item etc for example when wanting to see only tourism-type-relevant major places nearby.
There could be many enabable filters which could be extended over time (maybe via feedback form); here are some examples that I think would be very useful:

  • Transport infrastructure articles (like railway stations and so on; maybe one could have bridges separately)
  • Low-importance articles (see technical details)
  • Schools, cemeteries, political buildings, etc (separately and maybe underneath a multi-toggle item that un/checks all of them at once)
  • Greenspaces like forests, rivers and parks (if one wants to view only information about these)

These would simply be unchecked or checked (whatever the default is) in a sidebar of the map view that one can display with a burger menu.

Benefits (why should this be implemented?):
This is described in the use cases; mainly it would reduce the number of items on the map to show more relevant ones and reduce the items; it could also be used to find only specific items.

Technical details (how could this be implemented?):

  • The Wikipedia category system would be used; so for example for Transport infrastructure items articles in Category:Transport by country would be excluded (this wouldn't be queried each time the map is called but would be cached / stored and regularly updated)
  • For being able to exclude low-importance articles, the article importance ratings of relevant WikiProjects would be used
  • Maybe at a later point this could better integrate with WikiVoyage as well as with articles about certain subjects (for example an article about greenspaces in a region could embed the filtered Places map showing only these particular items)