address | predirabbrev | streetname | streettypeabbrev | postdirabbrev | internal | location | stateabbrev | zip | parsed
---------+--------------+------------+------------------+---------------+-----------+-------------+-------------+-----+--------
- 9000 | E | ROO | St | | SUITE 999 | SPRINGFIELD | CO | | t</programlisting>
+ 9000 | E | ROO | ST | | SUITE 999 | SPRINGFIELD | CO | | t</programlisting>
<para>Batch call. There are currently speed issues with the way postgis_tiger_geocoder wraps the address_standardizer. These will hopefully
be resolved in later editions. To work around them, if you need speed for batch geocoding to call generate a normaddy in batch mode, you are encouraged
-to directly call the address_standardizer standardize_address function as shown below which is similar exercise to what we did in <xref linkend="Normalize_Address" />.</para>
+to directly call the address_standardizer standardize_address function as shown below which is similar exercise to what we did in <xref linkend="Normalize_Address" /> that uses data created in <xref linkend="Geocode" />.</para>
<programlisting>WITH g AS (SELECT address, ROW((sa).house_num, (sa).predir, (sa).name
, (sa).suftype, (sa).sufdir, (sa).unit , (sa).city, (sa).state, (sa).postcode, true)::norm_addy As na
orig | streetname | streettypeabbrev
-----------------------------------------------------+---------------+------------------
- 529 Main Street, Boston MA, 02129 | MAIN | St
- 77 Massachusetts Avenue, Cambridge, MA 02139 | MASSACHUSETTS | Ave
+ 529 Main Street, Boston MA, 02129 | MAIN | ST
+ 77 Massachusetts Avenue, Cambridge, MA 02139 | MASSACHUSETTS | AVE
25 Wizard of Oz, Walaford, KS 99912323 | WIZARD OF |
- 26 Capen Street, Medford, MA | CAPEN | St
- 124 Mount Auburn St, Cambridge, Massachusetts 02138 | MOUNT AUBURN | St
- 950 Main Street, Worcester, MA 01610 | MAIN | St</programlisting>
+ 26 Capen Street, Medford, MA | CAPEN | ST
+ 124 Mount Auburn St, Cambridge, Massachusetts 02138 | MOUNT AUBURN | ST
+ 950 Main Street, Worcester, MA 01610 | MAIN | ST</programlisting>
</refsection>
<!-- Optionally add a "See Also" section -->
<refsection>
<sect3 id="installing_pagc_address_standardizer"><title>Using PAGC address standardizer</title>
<para>One of the many complaints of folks is the address normalizer function <xref linkend="Normalize_Address" /> function that normalizes an address for prepping before geocoding. The normalizer is far from perfect and trying to patch its imperfectness takes a vast amount of resources. As such we have integrated with another
- project that has a much better address standardizer engine. This is currently a separate project, which is a subproject of PAGC. The source code for this PostgreSQL standardizer extension can be downloaded from <ulink url="http://sourceforge.net/p/pagc/code/360/tree/branches/sew-refactor/postgresql">PAGC PostgreSQL Address Standardizer</ulink>. To use this new normalizer, you compile the pagc extension and install as an extension in your database with:</para>
+ project that has a much better address standardizer engine. This is currently a separate project, which is a subproject of PAGC. The source code for this PostgreSQL standardizer extension can be downloaded from <ulink url="http://sourceforge.net/p/pagc/code/360/tree/branches/sew-refactor/postgresql">PAGC PostgreSQL Address Standardizer</ulink>. To use this new normalizer, you compile the pagc extension and install as an extension in your database.</para>
<para>The PAGC project and standardizer portion in particular, relies on PCRE which is usually already installed on most Nix systems,
but you can download the latest at: <ulink url="http://www.pcre.org">http://www.pcre.org</ulink> </para>
<para>For Windows users, the PostGIS 2.1+ bundle will come packaged with the address_standardizer already so no need to compile and can move straight to <code>CREATE EXTENSION</code> step.</para>