-
Notifications
You must be signed in to change notification settings - Fork 1.1k
categories.txt
Alex Zolotarev edited this page Feb 25, 2016
·
5 revisions
categories.txt is used on map generation stage, to display map feature names and for search queries.
For example:
amenity-supermarket
en:3Supermarket|grocery|3shop
ru:3Супермаркет|магазин
- Here amenity-supermarket is a map object type (multiple objects can be separated with "|" symbol).
- Then goes language code before colon (en and ru in example above), and one or more words.
- English translation is a default for missing languages and should always go first.
- First word is displayed to the user, and should start with a capital letter (Sentence case). English names are always in Title Case.
- First and all other words are used in our search engine to match this map object type - we call them search synonyms.
- A number before word means how many chars should be typed before suggestion with this word appears on a search screen.
- If map object should be found when searching by category ("shop", "hotel", "food", "restaurant" etc.) you need to put correct synonym from strings.txt file (see sections like [tourism], [hotel] etc.).
Please note, that our search is prefix-only and it takes delimiters into an account. For example, if you type market it will match super-market or super market, but will not match supermarket.