org.opengts.geocoder
Interface GeocodeProvider

All Known Implementing Classes:
GeocodeProviderAdapter, GeoNames, GoogleGeocodeV2, GoogleGeocodeV3, TinyGeocoder

public interface GeocodeProvider


Method Summary
 GeoPoint getGeocode(java.lang.String address, java.lang.String country)
          Returns GeoPoint of specified address
 java.lang.String getName()
          Returns the name of this GeocodeProvider
 boolean isEnabled()
          Returns true if this GeocodeProvider is enabled
 boolean isFastOperation()
          Return true if this operation will take less than 20ms to complete (The returned value is used to determine whether the 'getGeocode' operation should be performed immediately, or lazily.)
 

Method Detail

getName

java.lang.String getName()
Returns the name of this GeocodeProvider


isEnabled

boolean isEnabled()
Returns true if this GeocodeProvider is enabled

Returns:
True if this GeocodeProvider is enabled, false otherwise

isFastOperation

boolean isFastOperation()
Return true if this operation will take less than 20ms to complete (The returned value is used to determine whether the 'getGeocode' operation should be performed immediately, or lazily.)


getGeocode

GeoPoint getGeocode(java.lang.String address,
                    java.lang.String country)
Returns GeoPoint of specified address