<html>
<head>
<style><!--
.hmmessage P
{
margin:0px;
padding:0px
}
body.hmmessage
{
font-size: 12pt;
font-family:Calibri
}
--></style></head>
<body class='hmmessage'><div dir='ltr'>Hi Steve,<br><br>I tried the branch with a map for Poland. I can't test with the device<br>because it is broken (my own fault, I tried to exchange the display)<br><br>A few results from MapSource:<br>The map contains many streets named "Ignacego Paderewskiego" (different cities),<br>and also some named "Ignacego Jana Paderewskiego"<br>A lot of street names start with "Ignacego".<br>The data is here:<br><a href="http://files.mkgmap.org.uk/" target="_blank">http://files.mkgmap.org.uk/</a><br>I used the command <br>java mkgmap.jar --route --housenumbers --index --bounds=f:\osm\bounds-latest.zip --nsis 63240001.osm.pbf<br>to produce the map.<br>In Mapsource I search for an address, leaving all fields besides the street name empty, the result<br>list is limited to 20 entries.<br><br>- search for "Ignacego":<br>+ 1st hit: "Kraszewskiego Józefa Ignacego"<br>+ followed by a sorted list of roads starting with "Ignacego"<br>+ followed by a sorted list of roads having "Ignacego" as 2nd word<br>+ following by a list of roads having a word starting with "Ii"<br><br>- search for "Paderew":<br>+ 1st hit: "Ignacego Paderewskiego"<br>+ followed by results like "Pallacowa", "Palmova","Pancerna", "6 I Brygady Pancernej Wojska Polskiego", "I Brygady Pancernej Wojska Polskiego(6)"<br> which seems to be a sorted list of roads containing the string "Pa"<br> ++ When I select "6 I Brygady Pancernej Wojska Polskiego", the street is not found<br> ++ When I select "I Brygady Pancernej Wojska Polskiego(6)" the street is found<br> ++ The name in OSM is ""I Brygady Pancernej Wojska Polskiego""<br>+ I DON'T see the one named "Ignacego Jana Paderewskiego" in this list<br><br>- search for "Jana":<br>+ 1st hit: "Swietego Jana"<br>+ followed by some roads starting with "Jana" or "Jana" as 2nd word. <br>Interesting: the list seems to be sorted by the word following Jana, no matter<br>whether Jana is the 1st word or not (see screenshot Jana.png), <br><br>- search for "jana pa"<br>+ 1st hit: "Ignacego Jana Paderewskiego"<br>+ followed by list of roads with "jana pa" in the name<br>+ followed by list of roads with "jana ??" in the name, where ?? is Ry, Si, Sk, .. so these<br>seem to be the roads sorted by the word following "Jana"<br><br>Conclusion:<br>The Mapsource algo seems to list<br>1) all street names where the last word begins with the search string (dashes seem to be used like blanks)<br>2) all street names containing the 1st word of the search string as the beginning of a word, sorted by the characters following<br>the search string.<br><br>Problem:<br>- all listed streets starting with a digit don't seem to exist (I guess these are refs?)<br><br>I hope it helps somehow. Let me know if I should test other combinations.<br><br>Gerd<br><br><div>> Date: Thu, 11 Dec 2014 01:11:26 +0100<br>> From: popej@poczta.onet.pl<br>> To: mkgmap-dev@lists.mkgmap.org.uk<br>> Subject: Re: [mkgmap-dev] multi-word street search<br>> <br>> Hi Steve,<br>> <br>> > This is because it shouldn't make much difference: if A sorts<br>> > before B then A will also sort before <shield>B and <shield>A will<br>> > sort before B.<br>> <br>> But there are more codes, like separation code, which can be placed in <br>> the middle of the label. Or maybe they aren't available in mkgmap? I <br>> have never used them.<br>> <br>> > So we need to find out what difference it makes to the sort order.<br>> <br>> Well, I have done more tests with nuvi. Devices perform search <br>> differently. My findings are following:<br>> - My patches don't work in device.<br>> - Mixed-index works in device.<br>> - Mixed-index behaves similarly to City Navigator maps in Mapsource and <br>> in device.<br>> <br>> I have tried mkgmap.jar, that you have provided, and compilation of <br>> current mixed-index branch. Both worked correctly in device. There is no <br>> easy partial search in Mapsource, like with my patch, but search in <br>> Mapsource is usable. If you write partial string, then Mapsource offer <br>> valid labes to choose from. Mixed-index works in BaseCamp too.<br>> <br>> My conclusion is, that your solutions in mixed-index is correct (maybe <br>> it needs some cleaning, there is still test code active). I encourage <br>> users to make more tests.<br>> <br>> -- <br>> Best regards,<br>> Andrzej<br>> _______________________________________________<br>> mkgmap-dev mailing list<br>> mkgmap-dev@lists.mkgmap.org.uk<br>> http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev<br></div>                                            </div></body>
</html>