Opened 13 years ago

Closed 12 years ago

Last modified 12 years ago

#1127 closed defect (fixed)

directional prefix ending up in directional postprefix (at least for highways)

Reported by: robe Owned by: robe
Priority: medium Milestone: PostGIS 2.1.0
Component: pagc_address_parser Version: 1.5.X
Keywords: history Cc: woodbri

Description

This is something I notices with brian's examples in #1077. I haven't added these to regress, since they don't behave right.

So for example:

SELECT pprint_addy(addy) As pp, addy.* FROM normalize_address('18208 N COUNTY ROAD 241, ALACHUA, FL 32615') AS addy;


                  pp                  | address | predirabbrev | streetname | streettypeabbrev | postdirabbrev | internal | location | stateabbrev |  zip  | parsed 
--------------------------------------+---------+--------------+------------+------------------+---------------+----------+----------+-------------+-------+--------
 18208 Co Rd 241 N, ALACHUA, FL 32615 |   18208 |              | 241        | Co Rd            | N             |          | ALACHUA  | FL          | 32615 | t

When the N should be in the predirabbrev column

Change History (9)

comment:1 by robe, 13 years ago

Milestone: PostGIS 2.0.0PostGIS 2.1.0

comment:2 by robe, 13 years ago

Milestone: PostGIS 2.1.0PostGIS 2.0.1

comment:3 by robe, 12 years ago

Milestone: PostGIS 2.0.1PostGIS 2.1.0

note I'm pushing all these to 2.1. I'm changing 2.1 significantly so it wil be hard to patch back to 2.0.1 and besides who wants to use 2010 data when they can use 2011 data.

comment:4 by woodbri, 12 years ago

Cc: woodbri added

PAGC tools handle this.

comment:5 by robe, 12 years ago

Component: tiger geocoderpagc_address_parser

comment:6 by robe, 12 years ago

This works, except I can't figure out how to get North to be N. What table to change gaz or lex.

SELECT 'basic' As parser, pprint_addy(addy) As pp, addy.* FROM normalize_address('18208 N COUNTY ROAD 241, ALACHUA, FL 32615') AS addy
UNION ALL
SELECT 'pagc' As parser, pprint_addy(addy) As pp, addy.* FROM pagc_normalize_address('18208 N COUNTY ROAD 241, ALACHUA, FL 32615') AS addy;

Yields:

 parser |                    pp                    | address | predirabbrev | streetname | streettypeabbrev | postdirabbrev | internal | location | stateabbrev
|  zip  | parsed
--------+------------------------------------------+---------+--------------+---
---------+------------------+---------------+----------+----------+-------------+-------+--------
 basic  | 18208 Co Rd 241 N, ALACHUA, FL 32615     |   18208 |              | 24
1        | Co Rd            | N             |          | ALACHUA  | FL
| 32615 | t
 pagc   | 18208 NORTH Co Rd 241, ALACHUA, FL 32615 |   18208 | NORTH        | 24
1        | Co Rd            |               |          | ALACHUA  | FL
| 32615 | t

comment:7 by robe, 12 years ago

nevermind. Figured it out.

comment:8 by robe, 12 years ago

Resolution: fixed
Status: newclosed

pagc handles this right so closing out.

comment:9 by robe, 12 years ago

Keywords: history added
Note: See TracTickets for help on using tickets.