In particolare, la parte di codice da aggiungere, è al file "address"
contenuto nella cartella "inc" nella cartella dello stile desiderato,
dentro la cartella "styles".
Il codice da aggiungere è di Enrico Liboni ed è il seguente:
# Get the last full word if a \s (whitespace) exist in name
( mkgmap:country=ITA | mkgmap:country=FRA | mkgmap:country=CHE) &
highway=* & name ~ '.*\s.*' { set last:word='${name|part: :-1}' }
# 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
last:word ~ '(I|II|III|IV|V|VI.*|IX|X|XI.*|XV.*|XX.*)' {set
last:word='${name|part: >-3}' }
# set 3rd and 4th labels (used for address search only) with the
last:word as 1st word
last:word=* { set mkgmap:label:3='${last:word}, ${name|part: <-1}';set
mkgmap:label:4='${last:word}, ${name|part: <-1}' }
Ed è tratto da questa email che ci ha salvato la vita: :-)
http://www.mkgmap.org.uk/pipermail/mkgmap-dev/2014q1/019658.html
_______________________________________________
Talk-it mailing list
Talk-it@openstreetmap.org
https://lists.openstreetmap.org/listinfo/talk-it