Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#1354 closed defect (fixed)

Problems geocoding addresses containing "ST STE"

Reported by: bpanulla Owned by: robe
Priority: medium Milestone: PostGIS 2.1.0
Component: pagc_address_parser Version: master
Keywords: Cc: woodbri

Description

The geocoder gets confused by addresses with a type of "ST" followed immediately by an internal address beginning with "STE", even though normalize_address() appears to handle this without issue.

normalize_address()

SELECT addy.*
FROM normalize_address('6226 E PIMA ST STE 999, TUCSON') AS addy;
AddressPre-DirStreet Street TypePost-DirInternalLocalityStateZipparsed
6226EPIMA STStSTE 999TUSCONAZt

geocode() with bad string

SELECT g.rating, (addy).*
FROM geocode('6226 E PIMA ST STE 999, TUCSON, AZ') AS g;
RatingAddressPre-DirStreetStreet TypePost-DirInternalLocalityStateZipparsed
100TusconAZ85641t

geocode() with amended string

If you replace "ST" with "STREET" the geocoder performs as desired.

SELECT g.rating, (addy).*
FROM geocode('6226 E PIMA STREET STE 999, TUCSON, AZ') AS g;
RatingAddressPre-DirStreetStreet TypePost-DirInternalLocalityStateZipparsed
16226EPimaStSTE 999TusconAZ85712t

Change History (9)

comment:1 by robe, 13 years ago

Status: newassigned

comment:2 by robe, 13 years ago

Milestone: PostGIS 2.0.0PostGIS 2.1.0

comment:3 by robe, 13 years ago

Milestone: PostGIS 2.1.0PostGIS 2.0.1

comment:4 by robe, 12 years ago

Milestone: PostGIS 2.0.1PostGIS 2.1.0

comment:5 by woodbri, 12 years ago

Cc: woodbri added

comment:6 by woodbri, 12 years ago

PAGC tools handle this.

comment:7 by robe, 12 years ago

Component: tiger geocoderpagc_address_parser

rather than just push these, I'm going to move them to things that pagc_address_parser can handle or should and close them out once tested and pagc integrated as an option.

comment:8 by robe, 12 years ago

Resolution: fixed
Status: assignedclosed

This works fine with pagc_normalize function.

SELECT addy.*
FROM pagc_normalize_address('6226 E PIMA ST STE 999, TUCSON') AS addy;

Yields:

 address | predirabbrev | streetname | streettypeabbrev | postdirabbrev | internal  | location | stateabbrev | zip | parsed
---------+--------------+------------+------------------+---------------+-----------+----------+-------------+-----+--------
    6226 | E            | PIMA       | St               |               | SUITE 999 | TUCSON   |             |     | t

and then geocoder should do the the right thing with that, but I don't have AZ data loaded to verify.

comment:9 by robe, 12 years ago

oops forgot the AZ

SELECT * FROM pagc_normalize_address('6226 E PIMA ST STE 999, TUCSON, AZ') AS addy;
 address | predirabbrev | streetname | streettypeabbrev | postdirabbrev | internal  | location | stateabbrev | zip | parsed
---------+--------------+------------+------------------+---------------+-----------+----------+-------------+-----+--------
    6226 | E            | PIMA       | St               |               | SUITE 999 | TUCSON   | AZ          |     | t
Note: See TracTickets for help on using tickets.