<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=iso-8859-1">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2657.73">
<TITLE>Re: [postgis-users] Re: Status of geocoding functions in PostGIS?</TITLE>
</HEAD>
<BODY>

<P><FONT SIZE=2>Hi Steve,</FONT>
</P>

<P><FONT SIZE=2>At the moment we are working on two things. First, modifying PAGC so&nbsp; </FONT>
<BR><FONT SIZE=2>that we can use it to augment road network files, particularly the&nbsp; </FONT>
<BR><FONT SIZE=2>new StatsCan road network. The data is released province by province,&nbsp; </FONT>
<BR><FONT SIZE=2>but their are no local identifiers. So common addresses like 821 10th&nbsp; </FONT>
<BR><FONT SIZE=2>street get multiple perfect matches. The second thing we are doing is&nbsp; </FONT>
<BR><FONT SIZE=2>allowing people to edit the address ranges (temporarily) on the fly.&nbsp; </FONT>
<BR><FONT SIZE=2>Often the address range information is incomplete or simply missing&nbsp; </FONT>
<BR><FONT SIZE=2>for some streets in all the road network files we have worked with.&nbsp; </FONT>
<BR><FONT SIZE=2>So a user will often find an address range that is very close, but&nbsp; </FONT>
<BR><FONT SIZE=2>not exact. PAGC will allow them to alter the address range of the&nbsp; </FONT>
<BR><FONT SIZE=2>&quot;close&quot; road segment, and geocode relative to the altered segment's&nbsp; </FONT>
<BR><FONT SIZE=2>address range. The users changes will be written to a separate file,&nbsp; </FONT>
<BR><FONT SIZE=2>with the idea that we might be able to collaboratively filter users&nbsp; </FONT>
<BR><FONT SIZE=2>proposed changes to update the underlying road layer.</FONT>
</P>

<P><FONT SIZE=2>Right now PAGC is a command line tool (and is about as complicated to&nbsp; </FONT>
<BR><FONT SIZE=2>use as something like ogr2ogr), and a bit more oriented to doing&nbsp; </FONT>
<BR><FONT SIZE=2>batch geocoding. Converting it to a library is likely to be next&nbsp; </FONT>
<BR><FONT SIZE=2>after we get the address range editing capability to a reasonable&nbsp; </FONT>
<BR><FONT SIZE=2>level, as well as figuring out what we need to do to allow PAGC to be&nbsp; </FONT>
<BR><FONT SIZE=2>used in web applications. Up to this point we have not thought about&nbsp; </FONT>
<BR><FONT SIZE=2>creating a library oriented towards implementing a Postgres stored&nbsp; </FONT>
<BR><FONT SIZE=2>procedure. It does make a lot of sense. I will say we are likely to&nbsp; </FONT>
<BR><FONT SIZE=2>need a hand or two (or three) to help us do that. Walter Sinclair is&nbsp; </FONT>
<BR><FONT SIZE=2>the lead developer on PAGC itself, while I handle testing and data&nbsp; </FONT>
<BR><FONT SIZE=2>issues. Neither of us has much (read &quot;no&quot;) experience with Postgres&nbsp; </FONT>
<BR><FONT SIZE=2>internals. Walter's underlying geocoding engine is really excellent&nbsp; </FONT>
<BR><FONT SIZE=2>(much better that the commercial&nbsp; products I have used), but certain&nbsp; </FONT>
<BR><FONT SIZE=2>very worthwhile extensions we are going to need help implementing. If&nbsp; </FONT>
<BR><FONT SIZE=2>you, or anyone else on this list, is interested in helping out the&nbsp; </FONT>
<BR><FONT SIZE=2>PAGC project, please get a hold of us at pagcmail@google.com.</FONT>
</P>

<P><FONT SIZE=2>Dan</FONT>
</P>

<P><FONT SIZE=2>On 31-Mar-06, at 4:54 AM, Stephen Woodbridge wrote:</FONT>
</P>

<P><FONT SIZE=2>&gt; Hi Dan,</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; Have you guys made any progress in refactoring PAGC to be a&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; library. Since I see you on this list also have you thought about&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; building a library that can be used to implement a Postgres stored&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; procedure using PAGC?</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; PAGC is very cool with lots of nice technology but it is a little&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; difficult to get ones arms around it in its current state :), OK&nbsp; </FONT>
<BR><FONT SIZE=2>&gt; for me anyway.</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; Very nice work,</FONT>
<BR><FONT SIZE=2>&gt;&nbsp;&nbsp; -Steve</FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; Putler, Dan wrote:</FONT>
<BR><FONT SIZE=2>&gt;&gt; Hi Paul,</FONT>
<BR><FONT SIZE=2>&gt;&gt; You might want to look at the PAGC project (www.pagcgeo.org),&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; which I'm a member of. PAGC is written in C and works with&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; shapefiles. The intention goal is also to make PAGC extensible so&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; it can be used for geocoding postal addresses in a number of&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; countries. Currently it works out of the box with TIGER/Line data&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; and the new Statistics Canada public road network file (that&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; actually needs to be augmented with additional information until&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; it is really useful). The problem we have run into is that few&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; governments release address ranged road network files (we only&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; know that the US and Canada do, and all the EU countries don't),&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; so we haven't been able to work with anything other than US and&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; Canadian data. It sounds like you might benefit from our code&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; base, and there could be room for collaboration at some point.</FONT>
<BR><FONT SIZE=2>&gt;&gt; Dan</FONT>
<BR><FONT SIZE=2>&gt;&gt; On 30-Mar-06, at 9:48 PM, Paul Scott wrote:</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; On Fri, 2006-03-31 at 04:48 +0000, Mark Thomas wrote:</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt;&gt; Alex Smith wrote:</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt;&gt;&gt; Did some searching of the archives and found this article&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; &gt;&gt;&gt;&gt; stating that a</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt;&gt;&gt; geocoder for PostGIS is in the works (see</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt;&gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt; <A HREF="http://postgis.refractions.net/pipermail/postgis-users/2004-" TARGET="_blank">http://postgis.refractions.net/pipermail/postgis-users/2004-</A></FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt; September/005762.html).</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;&gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; If you would like to contribute to a project that is based on&nbsp;&nbsp; </FONT>
<BR><FONT SIZE=2>&gt;&gt; &gt; creating a</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; set of global geocoders, take a look at</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; <A HREF="http://avoir.uwc.ac.za/projects/geocoder/" TARGET="_blank">http://avoir.uwc.ac.za/projects/geocoder/</A></FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; This project is attempting to collect geocoders that will work for</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; almost anywhere that you may need. If you would like to join the</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; project, please just let me know!</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; --Paul</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt;</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; postgis-users mailing list</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>&gt;&gt;&nbsp; &gt; <A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-users" TARGET="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</A></FONT>
<BR><FONT SIZE=2>&gt;&gt; --------------------------------------------------------------------- </FONT>
<BR><FONT SIZE=2>&gt;&gt; ---</FONT>
<BR><FONT SIZE=2>&gt;&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt;&gt; postgis-users mailing list</FONT>
<BR><FONT SIZE=2>&gt;&gt; postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>&gt;&gt; <A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-users" TARGET="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</A></FONT>
<BR><FONT SIZE=2>&gt;</FONT>
<BR><FONT SIZE=2>&gt; _______________________________________________</FONT>
<BR><FONT SIZE=2>&gt; postgis-users mailing list</FONT>
<BR><FONT SIZE=2>&gt; postgis-users@postgis.refractions.net</FONT>
<BR><FONT SIZE=2>&gt; <A HREF="http://postgis.refractions.net/mailman/listinfo/postgis-users" TARGET="_blank">http://postgis.refractions.net/mailman/listinfo/postgis-users</A></FONT>
</P>

</BODY>
</HTML>