organicmaps
organicmaps copied to clipboard
Searching specific POI category
Any OSM POI category should be searchable. There are some broader categories that can be searched (e.g. touristic places, but I cannot search for any category, e.g all castles in the surroundings).
To be searchable, it should be included here: https://github.com/organicmaps/organicmaps/blob/master/data/categories.txt
Please list types present in OM (https://github.com/organicmaps/organicmaps/blob/master/data/categories.txt), but not searchable.
"post office" is in this list but when searching for it I only receive post offices with the exact phrase "post office" in the title (The UPS Store and FedEx locations for example are tagged as post_office but not in the results, not to mention government post offices with different name tags)
Would you accept a PR that includes all categories of OSM?
with the exact phrase "post office" in the title
@zyphlar what is your language? Did you check if there are proper translations in data/categories.txt? We match categories by the exact text in that file.
English, so the exact string "post office".
The file says this, I'm not sure what it means:
amenity-post_office|@post
en:3Post Office|U+2709|U+1F3E3|U+1F4E8|U+1F4E9|U+1F3E4|U+1F4EF
Interestingly the category "Post" searches everything as expected, but typing the exact string "Post" into the search box reverts to only things with that in the name. Adding the word "office" to the end of the "Post" category also works properly, but copy-pasting the resulting string "Post office" into the search bar goes back to failure. Very very strange, as if there is something magical about clicking on a category.
I don't mean the whole list of all possible categories that you can search for but the small list if you go to Search/Categories. There are only a few items in this list. So, unless you know what to search for, you cannot find anything. With the help of this list you could explore new categories.
What do you think about the suggestions of having an entry called "more ..." at the end of this short list. When clicked you are presented with a huge list of all OSM categories?
What about actually putting in that existing list all OSM categories and reusing their icons from the map? And properly suggesting them when a user types characters? And then putting more frequently used categories at the top of the list? That would be an ideal solution, right? :)