Skip to content

categories.txt

Alex Zolotarev edited this page Feb 1, 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.
  • First word is displayed to the user.
  • 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 put en translation first.

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.

Clone this wiki locally