id	summary	reporter	owner	description	type	status	priority	milestone	component	version	resolution	keywords	cc
1118	Street pretypes that aren't directional prefixes	robe	robe	"Example:

Camino del Rio is an example as noted in:
http://www.postgis.org/pipermail/postgis-users/2011-July/030152.html

normalize_address doesn't handle these at all and tiger data is inconsistent as to how it represents these.

So for example:

In tiger: Camino del Rio is represented as having

fullname:
Cam del Rio

name: 
del Rio

and pretypabrv: 
Cam

But in other locations of the world you'll see it listed as

fullname:
Cam del Rio

no pretyabrv

The two wasy to handle this would be to introduce a new:
norm_addy object -- the pretypabbrv

and another table to store these lookup alternative spellings
and changing geocode to handle this new field and changing the normalize_address as well.

OR (2) which I am leaning toward.

have a pretypeabbrv lookup and just during the geocode process,
compare tiger street names against all normalized street name forms (e.g. basically replacing any of these if they start at the beginning of the streetname with the abbreviated form and comparing with the normalize_address.

Option 2 seems much easier to implement and will also handle many cases such as the case of St. vs. Saint.


Example to test:


So now:

{{{
SELECT pprint_addy(addy), ST_AsText(geomout), rating
FROM geocode('477 Camino del Rio South, San Diego, CA 94115');
}}}


"	defect	new	medium	PostGIS Future	tiger geocoder	1.5.X			jmarca woodbri
