com.mizar.addressing.geocode
Class GeocoderFactory

java.lang.Object
  extended by com.mizar.addressing.geocode.GeocoderFactory

public class GeocoderFactory
extends java.lang.Object


Constructor Summary
GeocoderFactory()
           
 
Method Summary
 java.util.List<GeocoderBatchRow> batchRowsFromSpreadSheet(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook, int colPK, int colAddr)
          This method process a spreadsheet of keys and source addresses and retrun a collection of GeocoderBatchRows
 void geocodeBatchRows(javax.persistence.EntityManager em, java.util.List<GeocoderBatchRow> rows)
          The method process a List of GeocoderBatchRow and set list of Site, Street, Intersection depending on each GeocoderBatchRow's location type
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

GeocoderFactory

public GeocoderFactory()
Method Detail

batchRowsFromSpreadSheet

public java.util.List<GeocoderBatchRow> batchRowsFromSpreadSheet(org.apache.poi.hssf.usermodel.HSSFWorkbook workbook,
                                                                 int colPK,
                                                                 int colAddr)
                                                          throws java.lang.Exception
This method process a spreadsheet of keys and source addresses and retrun a collection of GeocoderBatchRows

Parameters:
workbook - a HSSFWorkbook / spreadsheet
colPK - the column number of primary keys
colAddr - the column number of source addresses
Returns:
List
Throws:
java.lang.Exception

geocodeBatchRows

public void geocodeBatchRows(javax.persistence.EntityManager em,
                             java.util.List<GeocoderBatchRow> rows)
The method process a List of GeocoderBatchRow and set list of Site, Street, Intersection depending on each GeocoderBatchRow's location type

Parameters:
em -
rows -