<chapter id="Address_Standardizer">\r
<title>Address Standardizer</title>\r
<para>This is a fork of the <ulink url="http://www.pagcgeo.org/docs/html/pagc-11.html">PAGC standardizer</ulink> (original code for this portion was <ulink url="http://sourceforge.net/p/pagc/code/360/tree/branches/sew-refactor/postgresql">PAGC PostgreSQL Address Standardizer</ulink>). </para>\r
- <para>The address standardizer is a single line address parser. That takes an input address and normalizes it based on a set of rules stored in a table and helper lex and gaz tables.</para>\r
- <para>The code is built into a single postgresql extension library called <code>address_standardizer</code> which can be installed with <code>CREATE EXTENSION address_standardizer</code>.</para>\r
+ <para>The address standardizer is a single line address parser that takes an input address and normalizes it based on a set of rules stored in a table and helper lex and gaz tables.</para>\r
+ <para>The code is built into a single postgresql extension library called <code>address_standardizer</code> which can be installed with <code>CREATE EXTENSION address_standardizer;</code>.</para>\r
<para>The code for this extension can be found in the PostGIS <filename>extras/adress_standardizer</filename> and is currently self-contained.</para>\r
<para>For installation instructions refer to: <xref linkend="installing_pagc_address_standardizer" />.</para>\r
<sect1 id="Address_Standardizer_Basics"><title>How the Parser Works</title>\r
<refsection>\r
<title>Examples</title>\r
\r
- <programlisting>SELECT num, street, city, zip, zipplus FROM parse_address('1 Devonshire Place, Boston, MA 02109-1234');</programlisting>\r
- <screen> num | street | city | zip | zipplus\r
+ <programlisting>SELECT num, street, city, zip, zipplus FROM parse_address('1 Devonshire Place, Boston, MA 02109-1234');\r
+ num | street | city | zip | zipplus\r
-----+------------------+--------+-------+---------\r
- 1 | Devonshire Place | Boston | 02109 | 1234</screen>\r
+ 1 | Devonshire Place | Boston | 02109 | 1234 \r
+</programlisting>\r
+\r
</refsection>\r
\r
<!-- Optionally add a "See Also" section -->\r
<para>You can later run <filename>uninstall_legacy.sql</filename> to get rid of the deprecated functions after you are done with restoring and cleanup.</para>
</sect1>
- <sect1 id="installing_pagc_address_standardizer"><title>Installing and Using ddress standardizer</title>
+ <sect1 id="installing_pagc_address_standardizer"><title>Installing and Using the address standardizer</title>
<para>The <code>address_standardizer</code> extension used to be a separate package that required separate download. From PostGIS 2.2 on, it is now bundled in.
For more information about the address_standardize, what it does, and how to configure it for your needs, refer to <xref linkend="Address_Standardizer" />.</para>
<para>This standardizer can be use in conjunction with the PostGIS packaged tiger geocoder extension as a replacement for the <xref linkend="Normalize_Address" /> discussed.