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