
Thank you Carlos and Gerd by your answers. In fact, I don't use the default style, but each way is tagged with "mkgmap:country=BRA", as you can see in a partial sample extracted from a mkgmap execution with echotags: Way 6761 [addr:city=BRUMADINHO, addr:country=BRA, addr:state=MG, highway=residential, mkgmap:city=BRUMADINHO, mkgmap:country=BRA, mkgmap:label:1=RUA DAS ROSAS, mkgmap:region=MG, mkgmap:street=RUA DAS ROSAS, name=RUA DAS ROSAS] Way 13983 [addr:city=BRUMADINHO, addr:country=BRA, addr:state=MG, highway=residential, mkgmap:city=BRUMADINHO, mkgmap:country=BRA, mkgmap:label:1=RUA RUBI, mkgmap:region=MG, mkgmap:street=RUA RUBI, name=RUA RUBI] This is may roadNameConfig.txt file in this test: ########################################################################## # Section 1 # prefix1:<lang> list of 1st words # prefix2:<lang> further words to combine with each prefix1 word, separated with a blank # suffix:<lang> gives list of suffix words # portugese prefix1:pt = "Rua", "Avenida", "Travessa" prefix2:pt = "da ", "do ", "de ", "das ", "dos " ########################################################################## # Section 2 # Map 3 letter ISO country codes to list of used languages for road names. lang:BRA = pt lang:PRT = pt And in MapSource I'm still viewing the ways with full name prefixed bye "Rua" and "Rua das ": [image: Imagem inline 1] What can I'm doing wrong? And Gerd, in your last email you quoted the "LocatorConfig.xml" file. What file is this and where can I find it? Thanks. Alexandre 2017-06-11 12:00 GMT-03:00 Gerd Petermann <GPetermann_muenchen@hotmail.com>:
Hi,
Carlos is right for the default style. If you use a very different style, make sure that mkgmap:country contains the 3 letter iso code for the country. See also the file LocatorConfig.xml. I'll try to make that clearer in the coments in roadNameConfig.txt.
https://github.com/openstreetmap/mkgmap/tree/master/resources
Gerd ________________________________________ Von: mkgmap-dev <mkgmap-dev-bounces@lists.mkgmap.org.uk> im Auftrag von Carlos Dávila <cdavilam@orangecorreo.es> Gesendet: Sonntag, 11. Juni 2017 15:32 An: Development list for mkgmap Betreff: Re: [mkgmap-dev] Doubt when using "road-name-config"
El 11/06/17 a las 14:42, Alexandre Loss escribió:
Hi Gerd,
I'm trying to use the new "road-name-config" parameter and I have a doubt:
In section 2 of the file roadNameConfig.txt there are some language configuration, for example "lang:FRA = fr". However, when do I tell mkgmap which language I'm using? In what parameter is this configured? Is it "country-abbr"?
Thanks,
Best regards
Alexandre Loss
Section 2 is used by mkgmap to know what language(s) is spoken in each country. You don't have to tell mkgmap what language, but what country. And it takes that info from bounds file if --bounds parameter is given. _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev _______________________________________________ mkgmap-dev mailing list mkgmap-dev@lists.mkgmap.org.uk http://www.mkgmap.org.uk/mailman/listinfo/mkgmap-dev