jawg / osm-contributor

GNU General Public License v3.0
72 stars 25 forks source link

Display a list of often-used tags in close proximity #75

Open Codain opened 7 years ago

Codain commented 7 years ago

Description: When creating a stop or editing one, it can be hard to remind in expert mode what tag can be set or what is the right spelling (case, namespace...). It would nice to have a list of often-used tags in a close proximity (for instance in the same city). The list would be displayed when creating a new tag.

Codain commented 7 years ago

Of course I speak about often-used tags on other bus stops in close proximity!

loicortola commented 7 years ago

Hi @Codain , thanks for the issue. The only thing we could do is to make this list out of the already-loaded points. maybe a list of 3 recently used in a choice box.

Otherwise, may I suggest that you add your preferences and your additional tags in expert mode, then fallback to normal mode?

Codain commented 7 years ago

Hi @loicortola,

Even in expert mode it may be difficult to remind the spelling or to type 10 times the same tags. This feature can be helpfull in both modes as suggestions (not fields automatically added to fill, suggestions of keys to add).

Regarding the close proximity, your proposal can be a good first step to experiment. But the best would, for instance, when the list of nodes is retrieved to send also a list of often used tags for this type of feature in the same city and/or defined distance.

loicortola commented 7 years ago

Sounds like a great feature. For what concerns City and/or refined distance, I am quite opposed to this as there is no API which gives us this feature out of the box (the best would have been tagsinfo API). Dynamic queries on a city-wide region are too heavy for Overpass and probably not "worth" caching in advance either. Have you heard of any OpenSource API which could do this?

Codain commented 7 years ago

I don't know about any API but can't you directly send a request to the DB ? Is Overpass the only way to retrieve data from OSM on your project ?

loicortola commented 7 years ago

Yes usually