Add:osm2navit:Use gnis:ST_alpha tags to detect many US towns that do not have is_in...
authorrphlx <rphlx@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 27 Jun 2008 17:21:23 +0000 (17:21 +0000)
committerrphlx <rphlx@ffa7fe5e-494d-0410-b361-a75ebd5db220>
Fri, 27 Jun 2008 17:21:23 +0000 (17:21 +0000)
git-svn-id: https://navit.svn.sourceforge.net/svnroot/navit/trunk/navit@1176 ffa7fe5e-494d-0410-b361-a75ebd5db220

navit/osm2navit.c

index b546894..f61f107 100644 (file)
@@ -605,6 +605,14 @@ add_tag(char *k, char *v)
                strcpy(is_in_buffer, v);
                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
+                       many US towns do not have is_in tags
+               */
+               strcpy(is_in_buffer, "USA");
+               level=5;
+       }
        if (! strcmp(k,"lanes")) {
                level=5;
        }