There are a number of open source geocoders out there; thus far nobody has donated one to the geotools project.
As for your house number problem; use the line string (of the street); there is a method to determine a percentage along the street (which you can figure out from your other two locations). If you need to you can use those other two points to shorten your line. Of interest: - LinearLocation - LineSegment.pointAlong(double segmentLengthFraction) - LengthIndexedLine.project( double index ); There is a breakdown of a similar problem here so you can see the style of programming: - http://docs.codehaus.org/display/GEOTDOC/Closest+Point+on+a+Line Jody On 17/12/2010, at 1:48 AM, Biken wrote: > > I have an address table in my Postgis database. The table has the following > fields: id, city, street, house_number,address_coordinate. My task is to be > able to predict the location(coordinates) of a given address if I have > details > of just the street name and house number. For example, if I have 3 and 7 > house > numbers in the same street in the database, then I should be able to perdict > the location of house numbers 4 or 5 using the records i already have in my > database. > I can access the table using getools library as featuresource, but I couldn't > figure out how to cary out the above task. > > I will very much appreciate any help > thanks. > > > ------------------------------------------------------------------------------ > Lotusphere 2011 > Register now for Lotusphere 2011 and learn how > to connect the dots, take your collaborative environment > to the next level, and enter the era of Social Business. > http://p.sf.net/sfu/lotusphere-d2d > _______________________________________________ > Geotools-gt2-users mailing list > [email protected] > https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users ------------------------------------------------------------------------------ Lotusphere 2011 Register now for Lotusphere 2011 and learn how to connect the dots, take your collaborative environment to the next level, and enter the era of Social Business. http://p.sf.net/sfu/lotusphere-d2d _______________________________________________ Geotools-gt2-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
