Address search Slovakia and Czech Republic

In Slovakia as well as Czech Republich - just like in Germany - there are some prefixes for cities - which shouldn't be in the name - however they have special symbols, can someone have a look, why the following doesn't work?: (the substitution of neither Okres, nor Kraj works) - both words have some special accents.... ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level7=* { set mkgmap:city='${mkgmap:admin_level7|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level6=* { set mkgmap:city='${mkgmap:admin_level6|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level9=* { set mkgmap:city='${mkgmap:admin_level9|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level10=* { set mkgmap:city='${mkgmap:admin_level10|subst:Okres |subst:Kraj}' } -- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

Do you have an example? I just take a quick look to Czech on osm.org, but haven't found such parts in names. I would suggest that you have to use the original string, because they are just compared. Henning Am 06.06.2013 19:40, schrieb Felix Hartmann:
In Slovakia as well as Czech Republich - just like in Germany - there are some prefixes for cities - which shouldn't be in the name - however they have special symbols, can someone have a look, why the following doesn't work?: (the substitution of neither Okres, nor Kraj works) - both words have some special accents....
( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level7=* { set mkgmap:city='${mkgmap:admin_level7|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level6=* { set mkgmap:city='${mkgmap:admin_level6|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level9=* { set mkgmap:city='${mkgmap:admin_level9|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level10=* { set mkgmap:city='${mkgmap:admin_level10|subst:Okres |subst:Kraj}' }

yes - for example Bratislava. It is wrongly classified (okres Bratislava - and so on for subdistricts) -- (well this is based on 19. April data - but I don't suppose it changed yet). As a city you can find Bratislava under Bratislava - but for the address search it goes wrong.... (or is the problem wrong admin_level??).. In More or less most of Czech and Slovakia address search doesn't work for me). On 06.06.2013 21:29, Henning Scholland wrote:
Do you have an example? I just take a quick look to Czech on osm.org, but haven't found such parts in names. I would suggest that you have to use the original string, because they are just compared.
Henning
Am 06.06.2013 19:40, schrieb Felix Hartmann:
In Slovakia as well as Czech Republich - just like in Germany - there are some prefixes for cities - which shouldn't be in the name - however they have special symbols, can someone have a look, why the following doesn't work?: (the substitution of neither Okres, nor Kraj works) - both words have some special accents....
( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level8=* { set mkgmap:city='${mkgmap:admin_level8|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level7=* { set mkgmap:city='${mkgmap:admin_level7|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level6=* { set mkgmap:city='${mkgmap:admin_level6|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level9=* { set mkgmap:city='${mkgmap:admin_level9|subst:Okres |subst:Kraj}' } ( mkgmap:country=SVK | mkgmap:country=CZE ) & mkgmap:city!=* & mkgmap:admin_level10=* { set mkgmap:city='${mkgmap:admin_level10|subst:Okres |subst:Kraj}' }
-- keep on biking and discovering new trails Felix openmtbmap.org & www.velomap.org

---------- Původní zpráva ---------- Od: Felix Hartmann <extremecarver@gmail.com> Datum: 6. 6. 2013 Předmět: [mkgmap-dev] Address search Slovakia and Czech Republic "In Slovakia as well as Czech Republich - just like in Germany - there are some prefixes for cities " I don't know if this is helpful answer but: "Kraj" mean district "Okres" mean subdistrict So for e.x. "Kraj-city" is name for administrative district "area" named name of main city of district NOT name of "city". Same in Slovakia. mira ""
participants (3)
-
Felix Hartmann
-
Henning Scholland
-
Jaromír Mikeš