<!doctype html>
<html>
<head>
<meta charset="UTF-8">
</head>
<body>
<div>
Hi Gerd,
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
that sounds good!
</div>
<div class="default-style">
As a workaround for searching route relations you can use invisible POIs?
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
Greetz
</div>
<div class="default-style">
<br>
</div>
<div class="default-style">
Arndt
</div>
<blockquote type="cite">
<div>
Gerd Petermann <<a href="mailto:gpetermann_muenchen@hotmail.com">gpetermann_muenchen@hotmail.com</a>> hat am 19.01.2022 12:38 geschrieben:
</div>
<div>
<br>
</div>
<div>
<br>
</div>
<div>
Hi all,
</div>
<div>
<br>
</div>
<div>
I think I found a solution that works well (at least for Arndt)
</div>
<div>
<br>
</div>
<div>
The attached patch mdr7-del3.patch changes mkgmap so that
</div>
<div>
1) For the global index, the --mdr7-del option now lists "stop index" words. If any of the listed words appears in a road label the label is
</div>
<div>
not added to the global index.
</div>
<div>
2) each road gets a label from the field mkgmap:street (if the road didn't have any label mkgmap adds a blank label and a 2nd label with the name).
</div>
<div>
If the road already had 4 labels and none matches the value in mkgmap:street the last label is replaced.
</div>
<div>
A similar logic was already in the housenumber processing, but it was only executed for roads with housenumbers.
</div>
<div>
<br>
</div>
<div>
These two changes fix the problems with street/address search for Arndt's "Speiche" style. He told me that he wants the long name in the routing directions
</div>
<div>
but only the road name in the address search.
</div>
<div>
The good thing is that the patch reduces both the tile size and the index size and MdrCheck no longer complains about any road.
</div>
<div>
<br>
</div>
<div>
Felix might not be so happy with this, as he wrote that he wants to be able to search for street names that contain e.g. route relation names.
</div>
<div>
<br>
</div>
<div>
Gerd
</div>
<div>
<br>
</div>
<div>
________________________________________
</div>
<div>
Von: mkgmap-dev <<a href="mailto:mkgmap-dev-bounces@lists.mkgmap.org.uk">mkgmap-dev-bounces@lists.mkgmap.org.uk</a>> im Auftrag von Gerd Petermann <<a href="mailto:GPetermann_muenchen@hotmail.com">GPetermann_muenchen@hotmail.com</a>>
</div>
<div>
Gesendet: Mittwoch, 19. Januar 2022 09:01
</div>
<div>
An: <a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
Betreff: [mkgmap-dev] use of --mdr7-del can break address search/street search
</div>
<div>
<br>
</div>
<div>
Hi all,
</div>
<div>
<br>
</div>
<div>
see <a href="https://files.mkgmap.org.uk/detail/547" rel="noopener" target="_blank">https://files.mkgmap.org.uk/detail/547</a>
</div>
<div>
<br>
</div>
<div>
A search in Mapsource for street name "Birkenweg" only finds "Birkenweg Foot,Unna"
</div>
<div>
while it should find many more entries for cities like Altena, Fröndenberg/Ruhr, Hemer and others.
</div>
<div>
<br>
</div>
<div>
The cause of the trouble is that the first road label in the map that that starts with "Birkenweg" is the
</div>
<div>
"Birkenweg Foot" in Unna.
</div>
<div>
Reason:
</div>
<div>
With --mdr7-del=foot the label is treated like "Birkenweg" and all other roads with label "Birkenweg"
</div>
<div>
in this tile are ignored because the index already contains an entry "Birkenweg" (only one entry per map is stored).
</div>
<div>
This index entry will point to the label "Birkenweg Foot" in the tile, and thus only roads with that label are found.
</div>
<div>
<br>
</div>
<div>
I have a few ideas how to fix this problem, but I am pretty sure that search can only work well
</div>
<div>
when the real street name is stored in one of the 4 road labels (without other words or refs).
</div>
<div>
Up to now the --housenumbers option forces this when the road has numbers, but mkgmap
</div>
<div>
should probably always do this. If that is done the option --mdr7-del could work like this:
</div>
<div>
If any of the listed words is found ignore the label for the index.
</div>
<div>
<br>
</div>
<div>
Or maybe the option is obsolete and we can simply ignore the first label for the index
</div>
<div>
whenever there are further labels.
</div>
<div>
<br>
</div>
<div>
Gerd
</div>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
<div>
_______________________________________________
</div>
<div>
mkgmap-dev mailing list
</div>
<div>
<a href="mailto:mkgmap-dev@lists.mkgmap.org.uk">mkgmap-dev@lists.mkgmap.org.uk</a>
</div>
<div>
<a href="https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev" rel="noopener" target="_blank">https://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev</a>
</div>
</blockquote>
</body>
</html>