|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object org.opengts.geocoder.ReverseGeocodeProviderAdapter org.opengts.geocoder.tinygeocoder.TinyGeocoder
public class TinyGeocoder
Field Summary | |
---|---|
protected static java.lang.String |
ENCODING_UTF8
|
protected static java.lang.String |
HOST_PRIMARY
|
protected static java.lang.String |
PROP_hostName
|
protected static int |
TIMEOUT_Geocode
|
protected static int |
TIMEOUT_ReverseGeocode
|
Fields inherited from class org.opengts.geocoder.ReverseGeocodeProviderAdapter |
---|
_PROP_isEnabled, DEFAULT_MAX_FAILOVER_SECONDS, MIN_FAILOVER_SECONDS, PROP_alwaysFast, PROP_maxFailoverSeconds, PROP_ReverseGeocodeProvider_ |
Constructor Summary | |
---|---|
TinyGeocoder(java.lang.String name,
java.lang.String key,
RTProperties rtProps)
Constructor |
Method Summary | |
---|---|
GeoPoint |
getGeocode(java.lang.String address,
java.lang.String country)
GeocodeProvider interface - Gets GeoPoint from address/country |
protected int |
getGeocodeTimeout()
Returns the Geocode timeout |
protected java.lang.String |
getHostname()
Gets the hostname |
ReverseGeocode |
getReverseGeocode(GeoPoint gp,
java.lang.String localStr,
boolean cache)
Returns a ReverseGeocode instance for the specified GeoPoint |
protected int |
getReverseGeocodeTimeout()
Returns the ReverseGeocode timeout |
boolean |
isFastOperation()
Returns true if locally resolved, false otherwise. |
static void |
main(java.lang.String[] argv)
Main entery point for debugging/testing |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait |
Methods inherited from interface org.opengts.geocoder.ReverseGeocodeProvider |
---|
getFailoverReverseGeocodeProvider, getName, isEnabled, setFailoverReverseGeocodeProvider |
Methods inherited from interface org.opengts.geocoder.GeocodeProvider |
---|
getName, isEnabled |
Field Detail |
---|
protected static java.lang.String HOST_PRIMARY
protected static final java.lang.String PROP_hostName
protected static final int TIMEOUT_ReverseGeocode
protected static final int TIMEOUT_Geocode
protected static final java.lang.String ENCODING_UTF8
Constructor Detail |
---|
public TinyGeocoder(java.lang.String name, java.lang.String key, RTProperties rtProps)
name
- The name assigned to this ReverseGeocodeProviderkey
- The optional authorization keyrtProps
- The properties associated with this ReverseGeocodeProviderMethod Detail |
---|
public boolean isFastOperation()
isFastOperation
in interface GeocodeProvider
isFastOperation
in interface ReverseGeocodeProvider
isFastOperation
in class ReverseGeocodeProviderAdapter
protected java.lang.String getHostname()
protected int getReverseGeocodeTimeout()
public ReverseGeocode getReverseGeocode(GeoPoint gp, java.lang.String localStr, boolean cache)
getReverseGeocode
in interface ReverseGeocodeProvider
getReverseGeocode
in class ReverseGeocodeProviderAdapter
gp
- The GeoPoint
protected int getGeocodeTimeout()
public GeoPoint getGeocode(java.lang.String address, java.lang.String country)
getGeocode
in interface GeocodeProvider
address
- The addresscountry
- The country code
public static void main(java.lang.String[] argv)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |