Opened 13 years ago
Closed 13 years ago
#1310 closed defect (fixed)
City names with cardinal directions split by address normalizer
Reported by: | bpanulla | Owned by: | robe |
---|---|---|---|
Priority: | high | Milestone: | PostGIS 2.0.0 |
Component: | tiger geocoder | Version: | master |
Keywords: | Cc: |
Description
normalize_address() appears to strip cardinal directions from the city name and place them in the Post-dir field, causing incorrect geocoding. Test case:
1110 W CAPITOL AVE, WEST SACRAMENTO, CA
gets parsed by normalize_address as:
Address | Pre-Dir | Street | Street Type | Post-Dir | Internal | Locality | State | Zip |
1110 | W | CAPITOL | Ave | W | SACRAMENTO | CA |
Geocoded address: 1500 Capitol Ave, Sacramento, CA 95814
Removing the space between WEST and SACREMENTO causes the address to be parsed, and hence geocoded, correctly.
Address | Pre-Dir | Street | Street Type | Post-Dir | Internal | Locality | State | Zip |
1110 | W | CAPITOL | Ave | WESTSACRAMENTO | CA |
Geocoded address: 1110 W Capitol Ave, West Sacramento, CA 95691
Change History (3)
comment:1 by , 13 years ago
Priority: | medium → high |
---|
comment:2 by , 13 years ago
bpanulla,
We'll try to take a look at this in the next couple of days. thanks for the report
Note:
See TracTickets
for help on using tickets.
I figured out how to turn on debugging in the normalize_address() function. It's fine the whole way along until it loses it at the very end.