[postgis-tickets] [PostGIS] #2403: Normaiize/Standardize discrepancies
PostGIS
trac at osgeo.org
Sat Aug 3 23:13:49 PDT 2013
#2403: Normaiize/Standardize discrepancies
---------------------------------+------------------------------------------
Reporter: robe | Owner: robe
Type: defect | Status: new
Priority: medium | Milestone: PostGIS 2.1.0
Component: pagc_address_parser | Version: 2.0.x
Keywords: |
---------------------------------+------------------------------------------
In writing book, noticed one discrepancy between normalize_address and
pagc_address_parser. I suppose in some case the results may be right,
though feels wrong.
{{{
SELECT * from normalize_address('1731 New Hampshire Avenue Northwest,
Washington, DC 20010');
address|predirabbrev|streetname|streettypeabbrev|postdirabbrev|internal|location|stateabbrev|zip|parsed
1731||New Hampshire|Ave|NW||Washington|DC|20010|t
}}}
{{{
SELECT * from pagc_normalize_address('1731 New Hampshire Avenue Northwest,
Washington, DC 20010');
address|predirabbrev|streetname|streettypeabbrev|postdirabbrev|internal|location|stateabbrev|zip|parsed
1731||NEW HAMPSHIRE|AVE||# NORTHWEST|WASHINGTON|DC|20010|t
}}}
To rule out my custom edits as being the culprit, I tested
{{{
SELECT * from standardize_address('lex', 'gaz', 'rules'
, '1731 New Hampshire Avenue Northwest, Washington, DC 20010');
address|predirabbrev|streetname|streettypeabbrev|postdirabbrev|internal|location|stateabbrev|zip|parsed
1731||NEW HAMPSHIRE|AVE||# NORTHWEST|WASHINGTON|DC|20010|t
}}}
I feel Northwest should be treated as a sufix rather than internal as it
is with normalize_address, but not quite sure what to change here without
messing up something else.
--
Ticket URL: <http://trac.osgeo.org/postgis/ticket/2403>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.
More information about the postgis-tickets
mailing list