[postgis-tickets] [PostGIS] #4826: Geocoder gives goofy resutls for 1 Main St, Hanover, MA

PostGIS trac at osgeo.org
Tue Jan 5 18:51:19 PST 2021


#4826: Geocoder gives goofy resutls for 1 Main St, Hanover, MA
-----------------------------+---------------------------
  Reporter:  robe            |      Owner:  robe
      Type:  defect          |     Status:  new
  Priority:  medium          |  Milestone:  PostGIS 3.1.1
 Component:  tiger geocoder  |    Version:  3.1.x
Resolution:                  |   Keywords:
-----------------------------+---------------------------

Comment (by robe):

 Adding the following fixes the issue.  Main St:


 {{{
 INSERT INTO tiger_data.ma_zip_lookup_base(zip, state, county, city,
 statefp)
 SELECT '02339', 'MA', c.name As  county, cs.name AS city, cs.statefp
 FROM tiger.county AS c INNER JOIN tiger_data.ma_cousub AS cs ON
 (c.countyfp = cs.countyfp AND c.statefp = cs.statefp)
 WHERE cs.name = 'Hanover';

 }}}


 now yields right answer:


 {{{
 SELECT *
 FROM geocode('1 Main St, Hanover, MA',1);

 (1,,Main,St,,,Hanover,MA,02339,t,,)
 0101000020AD1000007FB2EFD615B651C06A1D3D91020F4540      3
 }}}

-- 
Ticket URL: <https://trac.osgeo.org/postgis/ticket/4826#comment:2>
PostGIS <http://trac.osgeo.org/postgis/>
The PostGIS Trac is used for bug, enhancement & task tracking, a user and developer wiki, and a view into the subversion code repository of PostGIS project.


More information about the postgis-tickets mailing list