Ticket #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: | trunk |
| 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
Note: See
TracTickets for help on using
tickets.
