Hi Gerd, ideally I was looking for a solution where we had something like mkgmap:noindex in the style to cause the label to be omitted from the index. I had a look at implementing this but came unstuck because as far as I can tell, the code that adds the index creates this from data that it reads back from the img file, which of course doesn't contain any mkgmap specific information.
There are a number of cases where mkgmap:noindex would be useful:
In the case where highway shields are used, I would prefer not to include the road number in the address index, so that when you type "A" you just get road names beginning with A, instead of A1, A11, A135 etc.
I allow (walking) routing along piers, the edges of carparks and other non-highways. If these have names, they also get included as road names in the address index and I would prefer to omit them.
I came up with the -- omit-highway-refs-from-index code as an alternative that achieved something of what I wanted, but if you can suggest a way to do this from the style, that would be better.
Regards,
Mike
mkgmap-dev-request@lists.mkgmap.org.uk wrote:
Hi Gerd, please find attached a patch that adds a new option
--omit-highway-refs-from-index, that causes labels containing highway
shields to be omitted from the address index.
Please try and commit if you are happy with it. Note, I am on holiday for
the next week, so if it needs any changes, I will look at it when I get
back.
Regards,
Mike