|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.geocoder.GeocodeProviderAdapter
public abstract class GeocodeProviderAdapter
Field Summary | |
---|---|
static java.lang.String |
_PROP_isEnabled
|
static java.lang.String |
PROP_GeocodeProvider_
|
Constructor Summary | |
---|---|
GeocodeProviderAdapter(java.lang.String name,
java.lang.String key,
RTProperties rtProps)
Constructor |
Method Summary | |
---|---|
protected java.lang.String[] |
_getUserPass()
Parse and return the user name and password |
static void |
_main()
|
java.lang.String |
getAuthorization()
Gets the authorization key of this GeocodeProvider |
abstract GeoPoint |
getGeocode(java.lang.String address,
java.lang.String country)
Returns GeoPoint of specified address |
java.lang.String |
getName()
Gets the name of this GeocodeProvider |
protected java.lang.String |
getPassword()
Return authorization password. |
RTProperties |
getProperties()
Gets the properties for this ReverseGeocodeProvider |
protected java.lang.String |
getUsername()
Return authorization username. |
boolean |
isEnabled()
Returns true if this ReverseGeocodeProvider is enabled |
abstract 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.) |
static void |
main(java.lang.String[] args)
|
void |
setAuthorization(java.lang.String key)
Sets the authorization key of this GeocodeProvider |
void |
setName(java.lang.String name)
Sets the name of this GeocodeProvider |
void |
setProperties(RTProperties rtProps)
Sets the properties for this ReverseGeocodeProvider |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
---|
public static final java.lang.String PROP_GeocodeProvider_
public static final java.lang.String _PROP_isEnabled
Constructor Detail |
---|
public GeocodeProviderAdapter(java.lang.String name, java.lang.String key, RTProperties rtProps)
name
- The name of this GeocodeProviderkey
- The access key (may be null)rtProps
- The properties (may be null)Method Detail |
---|
public void setName(java.lang.String name)
name
- The name of this geocode providerpublic java.lang.String getName()
getName
in interface GeocodeProvider
public void setAuthorization(java.lang.String key)
key
- The key of this geocode providerpublic java.lang.String getAuthorization()
protected java.lang.String[] _getUserPass()
protected java.lang.String getUsername()
protected java.lang.String getPassword()
public void setProperties(RTProperties rtProps)
rtProps
- The properties for this reverse-geocode providerpublic RTProperties getProperties()
public boolean isEnabled()
isEnabled
in interface GeocodeProvider
public abstract boolean isFastOperation()
GeocodeProvider
isFastOperation
in interface GeocodeProvider
public abstract GeoPoint getGeocode(java.lang.String address, java.lang.String country)
GeocodeProvider
getGeocode
in interface GeocodeProvider
public static void _main()
public static void main(java.lang.String[] args)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |