
I tested the branch, using directly the gmapsupp.img file in my device: it is working as expected (lots of tests...) except you can't always search correctly for an address when the same last word is used in different streets names. For example in Padova city (Italy) the following exists: Via Monte Santo Via Del Santo Via Girolamo Dal Santo Piazza Del Santo with the mixed-index, if I type "Santo" I get only: Santo in the list and if I select it shows the address in Via Monte Santo - the others are ignored. In general it should be beneficial to add as a suffix the remaining of the street name when the word is the last one: I find much more user friendly the behaviour I obtained in the main branch with my custom style, where if I type Santo I get: Santo, Via Monte Santo, Via Del Santo, Piazza Del Santo, Via Girolamo Dal in general the last word is always the most significant but it helps to know what was the full name to distinguish different streets named after different persons with same last name (or similar cases); not sure if this can be a general need, for reference below is the style I used with the main branch. Pls. let me know your point, Enrico # Get the last full word if a \s (whitespace) exist in name # if the last full word is a roman number - i.e. if a street has been named after a King or # a Pope - get the last two words # set the labels used for address search (3&4): # the 3rd label is set with the last:word as 1st word followed by comma and the remaining words # the 4th label skipping the 1st word (that is usually Via, Rue, Avenida etc, so not really useful in search) ( mkgmap:country=ITA | mkgmap:country=FRA | mkgmap:country=CHE | mkgmap:country=ESP) & highway=* & name ~ '.*\s.*' { set last:word='${name|part: :-1}' } last:word ~ '(I|II|III|IV|V|VI.*|IX|X|XI.*|XV.*|XX.*)' {set last:word='${name|part: >-3}' } last:word=* { set mkgmap:label:3='${last:word}, ${name|part: <-1}';set mkgmap:label:4='${name|part: >1}' } On Fri, Jan 9, 2015 at 4:12 PM, Enrico Liboni <eliboni@gmail.com> wrote:
How could I have missed this one...! What is exactly the expected behavior? In the gmappsupp.img file each word of the street name should be indexed apart from a country-based list of stop words (pending to be defined) - right?
Currently I workaround the original issue working with just the style regex/substitution/concatenation and the 4 alternate names, it works really well for Italy (at least) since apart form some exceptions that can be handled via proper regexp, the real meaningful word is always the last one or the one after the first (or the full name).
Pls. confirm the expected behavior of this trunk I'll do a test for sure shortly.
Thanks, Enrico
On Fri, Jan 9, 2015 at 12:32 AM, Steve Ratcliffe <steve@parabola.me.uk> wrote:
Hi Gerd
my impression was that everybody was happy with the results.
What do you think?
Yes I do want to push on and get it merged this time. I think that there may still be a problem with the gmapsupp index and I think we should have a way of dealing with removing common words, especially when they are first as in 'Rue', 'Calle' etc. Doesn't have to be complete, just ready to be used and improved.
I'll write some more tomorrow.
..Steve
_______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev