<html><head><meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /></head><body style='font-size: 10pt; font-family: Verdana,Geneva,sans-serif'>
<p>I attempt to handle this kind of thing in the styles, for addresses in the Netherlands where the most significant part is usually the last word of the street name and the first few words may be "filler" information - often personal names/titles etc of famous people. Using the following rules I find the last word of the name and add it as an additional label if it "qualifies".</p>
<p># CS: capture last part of name for dutch names in street index - limit to known suffixes to reduce crud<br />highway=* & mkgmap:country=NLD & name=* {set cs:lastpart='${name|part: :-1}'; }<br />cs:lastpart=* & !(cs:lastpart ~ '.*(weg|straat|laan|plantsoen|dijk|singel|vaart|wetering|kamp|slag|dreef|steeg|hof|dal|pad|plein)') { delete cs:lastpart; }</p>
<p># CS: get alternative name in the index<br />cs:lastpart=* & name!=$cs:lastpart {addlabel '${cs:lastpart}';}</p>
<p>It might not be so easy to parse other languages - what in Dutch would be Karl Marxstraat, in German you might write Karl-Marx-Strasse, which would need extraction of the last two parts.</p>
<p>I think also the use of a stop-word list has been discussed before, but it gets complicated because the stop-words are language-dependent (and not simply country-dependent).</p>
<div> </div>
<p>--colin</p>
<p>On 2015-12-31 10:21, Gerd Petermann wrote:</p>
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0"><!-- html ignored --><!-- head ignored --><!-- meta ignored -->
<div class="pre" style="margin: 0; padding: 0; font-family: monospace">I think these problems are better handled in the style, see inc/address:<br /><br /> mkgmap:country=DEU & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:Gemeinde |subst:Stadt}' }<br /> or <br /> mkgmap:country=CAN & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:City of }' }<br /><br /> Besides that the relation "Ciudad Autónoma de Buenos Aires"<br /><a href="http://www.openstreetmap.org/relation/1224652">http://www.openstreetmap.org/relation/1224652</a><br /> also has a role=label member called "Bueonos Aires" :<br /><a href="http://www.openstreetmap.org/node/81590481">http://www.openstreetmap.org/node/81590481</a><br /><br /> Gerd<br /><br /> ________________________________________<br /> Von: <a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a> <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Diego Massanti <<a href="mailto:diego@massanti.com">diego@massanti.com</a>><br /> Gesendet: Donnerstag, 31. Dezember 2015 09:41<br /> An: Development list for mkgmap<br /> Betreff: Re: [mkgmap-dev] Address search index questions.<br /><br /> Well i live in Argentina, and our main capital is named "Ciudad Autonoma de Buenos Aires", however some people will just refer to it as "Buenos Aires". Im sure i can find some other examples specially in spanish, but so far i faced the problem when typing "Buenos Aires" and getting back zero results just because the "official" name is the other one.<br /><br /> // Diego<br /><br />
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">On Dec 31, 2015, at 05:38, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.com</a>> wrote:<br /><br /> Hi Diego,<br /><br /> do you have examples for such city names ? I can only think of e.g. San Francisco, New York etc.<br /> I think those would not benefit.<br /><br /> Gerd<br /><br /> ________________________________________<br /> Von: <a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a> <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Diego Massanti <<a href="mailto:diego@massanti.com">diego@massanti.com</a>><br /> Gesendet: Donnerstag, 31. Dezember 2015 09:32<br /> An: Development list for mkgmap<br /> Betreff: Re: [mkgmap-dev] Address search index questions.<br /><br /> In fact it is not documented, it kind of works for street names, but not for cities. I haven't looked at the code, but i think that it separates the street names into words, and then adds all the words to the index. It would be great if we could implement this also for city names!<br /><br /> // Diego
<blockquote type="cite" style="padding: 0 0.4em; border-left: #1010ff 2px solid; margin: 0">On Dec 31, 2015, at 05:30, Thomas Morgenstern <<a href="mailto:webmaster@img2ms.de">webmaster@img2ms.de</a>> wrote:<br /><br /> Hi, the option --x-splitt-name-index is new for me. Is a documentation for this option available ?. In ..\mkgmap-r3650\doc\options.txt it is not descripted. Can i use both options --index and --x-splitt-name-index togehter ? or only solo 1 option ?<br /><br /> regards thomas<br /><br /> On Dec 30, 2015, at 18:25, Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.com</a>> wrote:<br /><br /> Hi Diego,<br /><br /> I think --x-split-name-index is the option you are looking for.<br /><br /> ciao,<br /> Gerd<br /><br /><br /><br /> _______________________________________________<br /> mkgmap-dev mailing list<br /><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br /><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote>
<br /> _______________________________________________<br /> mkgmap-dev mailing list<br /><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br /><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br /> _______________________________________________<br /> mkgmap-dev mailing list<br /><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br /><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></blockquote>
<br /> _______________________________________________<br /> mkgmap-dev mailing list<br /><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br /><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a><br /> _______________________________________________<br /> mkgmap-dev mailing list<br /><a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a><br /><a href="http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev">http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a></div>
</blockquote>
</body></html>