org.opengts.geocoder
Interface SubdivisionProvider

All Known Implementing Classes:
GeoNames, GisGraphy

public interface SubdivisionProvider


Method Summary
 java.lang.String getSubdivision(GeoPoint gp)
          Return the subdivision of the specified point (in the US, this is "US/" as in "US/CA")
 boolean isFastOperation()
          Returns true if this operation will take less than about 20ms to complete the returned value is used to determine whether the 'getReverseGeocode' operation should be performed immediately, or lazily (ie.
 

Method Detail

isFastOperation

boolean isFastOperation()
Returns true if this operation will take less than about 20ms to complete the returned value is used to determine whether the 'getReverseGeocode' operation should be performed immediately, or lazily (ie. in a separate thread).

Returns:
True if this is a fast (ie. local) operation

getSubdivision

java.lang.String getSubdivision(GeoPoint gp)
                                throws SubdivisionException
Return the subdivision of the specified point (in the US, this is "US/" as in "US/CA")

Throws:
SubdivisionException