|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.opengts.geocoder.ReverseGeocodeProviderAdapter
public abstract class ReverseGeocodeProviderAdapter
| Field Summary | |
|---|---|
static java.lang.String |
_PROP_isEnabled
|
static java.lang.String[] |
PROP_alwaysFast
|
static java.lang.String |
PROP_ReverseGeocodeProvider_
|
| Constructor Summary | |
|---|---|
ReverseGeocodeProviderAdapter(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 ReverseGeocodeProvider |
java.lang.String |
getName()
Gets the name of this ReverseGeocodeProvider |
protected java.lang.String |
getPassword()
Return authorization password. |
RTProperties |
getProperties()
Gets the properties for this ReverseGeocodeProvider |
abstract ReverseGeocode |
getReverseGeocode(GeoPoint gp,
java.lang.String localeStr)
Returns the best address for the specified GeoPoint |
protected java.lang.String |
getUsername()
Return authorization username. |
boolean |
isEnabled()
Returns true if this ReverseGeocodeProvider is enabled |
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. |
static void |
main(java.lang.String[] args)
|
void |
setAuthorization(java.lang.String key)
Sets the authorization key of this ReverseGeocodeProvider |
void |
setName(java.lang.String name)
Sets the name of this ReverseGeocodeProvider |
void |
setProperties(RTProperties rtProps)
Sets the properties for this ReverseGeocodeProvider |
java.lang.String |
toString()
Returns a String representation of this instance |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
| Field Detail |
|---|
public static final java.lang.String PROP_ReverseGeocodeProvider_
public static final java.lang.String _PROP_isEnabled
public static final java.lang.String[] PROP_alwaysFast
| Constructor Detail |
|---|
public ReverseGeocodeProviderAdapter(java.lang.String name,
java.lang.String key,
RTProperties rtProps)
name - The name of this reverse-geocode providerkey - 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 reverse-geocode providerpublic java.lang.String getName()
getName in interface ReverseGeocodeProviderpublic void setAuthorization(java.lang.String key)
key - The key of this reverse-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 java.lang.String toString()
toString in class java.lang.Objectpublic boolean isEnabled()
isEnabled in interface ReverseGeocodeProviderpublic boolean isFastOperation()
ReverseGeocodeProvider
isFastOperation in interface ReverseGeocodeProvider
public abstract ReverseGeocode getReverseGeocode(GeoPoint gp,
java.lang.String localeStr)
ReverseGeocodeProvider
getReverseGeocode in interface ReverseGeocodeProviderpublic 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 | ||||||||