|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectorg.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 int |
TIMEOUT_Geocode
|
protected static int |
TIMEOUT_ReverseGeocode
|
| Fields inherited from class org.opengts.geocoder.ReverseGeocodeProviderAdapter |
|---|
_PROP_isEnabled, PROP_alwaysFast, 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)
Returns GeoPoint of specified address |
protected int |
getGeocodeTimeout()
Returns the Geocode timeout |
ReverseGeocode |
getReverseGeocode(GeoPoint gp,
java.lang.String localStr)
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 org.opengts.geocoder.ReverseGeocodeProviderAdapter |
|---|
_getUserPass, _main, getAuthorization, getName, getPassword, getProperties, getUsername, isEnabled, setAuthorization, setName, setProperties, toString |
| 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 |
|---|
getName, isEnabled |
| Methods inherited from interface org.opengts.geocoder.GeocodeProvider |
|---|
getName, isEnabled |
| Field Detail |
|---|
protected static java.lang.String HOST_PRIMARY
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 ReverseGeocodeProvider| Method Detail |
|---|
public boolean isFastOperation()
isFastOperation in interface GeocodeProviderisFastOperation in interface ReverseGeocodeProviderisFastOperation in class ReverseGeocodeProviderAdapterprotected int getReverseGeocodeTimeout()
public ReverseGeocode getReverseGeocode(GeoPoint gp,
java.lang.String localStr)
getReverseGeocode in interface ReverseGeocodeProvidergetReverseGeocode in class ReverseGeocodeProviderAdaptergp - The GeoPoint
protected int getGeocodeTimeout()
public GeoPoint getGeocode(java.lang.String address,
java.lang.String country)
GeocodeProvider
getGeocode in interface GeocodeProviderpublic static void main(java.lang.String[] argv)
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||