]> granicus.if.org Git - postgis/commitdiff
#2193: pretype (not ideal because norm_addy doesn't have slot for it so just stuff...
authorRegina Obe <lr@pcorp.us>
Tue, 2 Apr 2013 15:07:12 +0000 (15:07 +0000)
committerRegina Obe <lr@pcorp.us>
Tue, 2 Apr 2013 15:07:12 +0000 (15:07 +0000)
git-svn-id: http://svn.osgeo.org/postgis/trunk@11243 b70326c6-7e19-0410-871a-916f4a2858ee

extras/tiger_geocoder/tiger_2011/pagc_normalize/pagc_normalize_address.sql

index 51d1dfd238c4078d42f3e99ad0ec1fea285c76b3..5826eb190b01e45344a80bd8b283ce8db4295652 100644 (file)
@@ -34,7 +34,8 @@ BEGIN
   result.streetName := trim(rec.name);\r
   result.location := trim(rec.city);\r
   result.stateAbbrev := trim(rec.state);\r
-  result.streettypeAbbrev := trim(rec.suftype);\r
+  --this should be broken out separately like pagc, but normalizer doesn't have a slot for it\r
+  result.streettypeAbbrev := trim(COALESCE(rec.suftype, rec.pretype)); \r
   result.preDirAbbrev := trim(rec.predir);\r
   result.postDirAbbrev := trim(rec.sufdir);\r
   result.internal := trim(rec.unit);\r