com.mizar.addressing.tiger.utils
Class TigerGeocoderFactory

java.lang.Object
  extended by com.mizar.addressing.tiger.utils.TigerGeocoderFactory

public class TigerGeocoderFactory
extends java.lang.Object


Constructor Summary
TigerGeocoderFactory()
           
 
Method Summary
 oracle.spatial.geometry.JGeometry geocodeAddress(java.lang.String address, java.lang.String zip, java.lang.String persistenceUnitName)
          Geocodes an address using its address and zip string values.
 java.lang.String getStatus()
           
 java.lang.Double[] longLatFromAddress(java.lang.String address, java.lang.String zip, java.lang.String persistenceUnitName)
          Returns the longtitude and latitude of an address.
 java.lang.Double[] longLatFromGeom(oracle.spatial.geometry.JGeometry geom)
          Returns the longtitude and latitdue of a JGeometry object.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TigerGeocoderFactory

public TigerGeocoderFactory()
Method Detail

longLatFromAddress

public java.lang.Double[] longLatFromAddress(java.lang.String address,
                                             java.lang.String zip,
                                             java.lang.String persistenceUnitName)
                                      throws TigerGeocoderFactoryException
Returns the longtitude and latitude of an address.

Parameters:
address - Address String
zip - US Zipcode String
persistenceUnitName - JPA persistence unit name String
Returns:
array representing longtitude and latitude
Throws:
TigerGeocoderFactoryException

longLatFromGeom

public java.lang.Double[] longLatFromGeom(oracle.spatial.geometry.JGeometry geom)
Returns the longtitude and latitdue of a JGeometry object.

Parameters:
geom - JGemetry object
Returns:
array representation of longitude and latitude

geocodeAddress

public oracle.spatial.geometry.JGeometry geocodeAddress(java.lang.String address,
                                                        java.lang.String zip,
                                                        java.lang.String persistenceUnitName)
                                                 throws TigerGeocoderFactoryException
Geocodes an address using its address and zip string values.

Parameters:
address - Address String
zip - US Zipcode String
persistenceUnitName - JPA persistence unit name String
Returns:
JGeometry object result from address geocoding
Throws:
TigerGeocoderFactoryException

getStatus

public java.lang.String getStatus()