Opened 13 years ago

Closed 13 years ago

#1087 closed defect (fixed)

Ratings are off when zip is wrong or not present

Reported by: robe Owned by: robe
Priority: high Milestone: PostGIS 2.0.0
Component: tiger geocoder Version: 1.5.X
Keywords: Cc:

Description

Examples:

SELECT pprint_addy(addy) as geo_loc, rating 
   FROM geocode('75 State Street, Boston, MA 02110', 3);

or

SELECT pprint_addy(addy) as geo_loc, rating 
   FROM geocode('75 State Street, Boston, MA', 3);

Has wrong zip and rates Milton the same so result of milton or boston is arbitrary if you choose to return just 1 result

            geo_loc            | rating
-------------------------------+--------
 75 State St, Boston, MA 02109 |      2
 75 State St, Milton, MA 02186 |      2
 75 State St, Ludlow, MA 01056 |      5

-- With exact zip rating okay --
SELECT pprint_addy(addy) as geo_loc, rating 
   FROM geocode('75 State Street, Boston, MA 02109', 3);

            geo_loc            | rating
------------------------------+--------
75 State St, Boston, MA 02109 |      0

In short rating should be penalizing Milton for not having exact match location and having a levenshtein distance zip further from target zip.

Change History (1)

comment:1 by robe, 13 years ago

Resolution: fixed
Status: newclosed

fixed at r7565

Note: See TracTickets for help on using tickets.