
El 02/07/13 22:21, Henning Scholland escribió:
Try
highway=* & name ~ '.*[aA]venida' { set foobar:name='${name|subst:Avenida |subst:avenida }, Avenida'} ...
foobar:name=* {set name='${foobar:name}'}
Henning I have managed to move all street type stuff to the end of the name with rules of the type below (thanks Henning) in the lines file: highway=* & name ~ '[aA]venida .*' { add streettype:movedend='${name|subst:Avenida |subst:avenida }, Avenida'} highway=* & streettype:movedend=* {set name='${streettype:movedend}'} It works fine for searching streets purposes, but now the problem is that house numbers are not found. I have tried adding the following lines to the points file, but it doesn't make the desired effect. addr:housenumber=* & addr:street ~ '[aA]venida .*' { add streettype:movedend='${addr:street|subst:Avenida |subst:avenida }, Avenida'} addr:housenumber=* & streettype:movedend=* {set addr:street='${streettype:movedend}'} Any idea how could I get house numbers match street names again?
Am 02.07.2013 20:00, schrieb Carlos Dávila:
El 02/07/13 19:28, Henning Scholland escribió:
Hi Carlos, maybe it would be a good hackto change the word order. E.g. "Avenida ..." => "..., Avenida"
That could be a solution. How would you do it in the style?
Henning
Am 02.07.2013 17:51, schrieb Carlos Dávila:
The maps are generated with --index parameter, the problem comes from names starting with the kind of way, such as Calle, Avenida, Avda. etc. It has been commented here some times and I think Steve have some ideas on how to fix it. As Felix says, it could be managed in the styles, but I think it's not a good idea, because I've seen some cities where you have the same name for an avenue, an street or a plaza and if you remove that words from the name you won't know which one is the one you are looking for.
El 02/07/13 16:41, Felix Hartmann escribió:
Basic: http://www.mkgmap.org.uk/doc/index.html
well and then follow the link to the wiki - where you find all info.
avda shouldn't be a problem, except that you have to enter if for streets which have avda as part of their name (which is of course not very practical - but could be solved in the style). On 02.07.2013 16:15, Baltasar García Perez-Schofield wrote:
Hi Felix,
Thank you for answering, so soon.
> steet search is working - maybe you forgot --index parameter? Or you > generated the gmapsupp.img in the same go as the .img files - then due > to memory constraints, by default no index will be generated in the > gmapsupp. I don't really know how the process was done. I simply downloaded the maps from:
http://mapas.alternativaslibres.es/
I contacted them and encoruaged me to contact you instead. I'm Spaniard, maybe the problem is that the streets are beginning with "avda." (Avenue) and so on.
But maybe the problem comes from the process of generating the IMG file. Can you point me to any instructions from which I can generate the maps myself? That way I could just check it out.
Cheers,