Add:maptool: Adds the parsing of a the place_county OSM tag, a tag used only in Irela...
authorgeoghegan <geoghegan@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 12 Jan 2011 19:38:14 +0000 (19:38 +0000)
committergeoghegan <geoghegan@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Wed, 12 Jan 2011 19:38:14 +0000 (19:38 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk@3905 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/navit/maptool/osm.c

index 7c7605e..a9254b5 100644 (file)
@@ -1052,12 +1052,24 @@ osm_add_tag(char *k, char *v)
                level=5;
        }
        if (! strcmp(k,"is_in:country")) {
-               /*      sometimes there is no is_in tag, only is_in:country.
-                  I put this here so it can be overwritten by the next if clause if there IS an is_in tag.
+               /**
+               * Sometimes there is no is_in tag, only is_in:country.
+               * I put this here so it can be overwritten by the previous if clause if there IS an is_in tag.
                */
                strcpy(is_in_buffer, v);
                level=5;
        }
+       if (! strcmp(k,"place_county")) {
+               /** 
+               * Ireland uses the place_county OSM tag to describe what county a town is in.
+               * This would be equivalent to is_in: Town; Locality; Country
+               * A real world example would be Node: Moycullen (52234625)
+               * The tag is processed as Moycullen; Galway; Ireland
+               * where Galway is the county
+               */
+               strcpy(is_in_buffer, "Ireland");
+               level=5;
+       }
        if (! strcmp(k,"gnis:ST_alpha")) {
                /*      assume a gnis tag means it is part of the USA:
                        http://en.wikipedia.org/wiki/Geographic_Names_Information_System