|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
public interface GeoCodingComponent
Simple interface for using external geocoding services. A class implementing this interface can either be providing data synchronously or asynchronously. It is not required to implement both ways, in that case, a UnsupportedOperationException is thrown.
Field Summary | |
---|---|
static int |
ERROR_NOT_FOUND
Error message indicating a result could not be obtained |
static int |
ERROR_SERVICE_DOWN
Error message indicating the geocoding service is not responding |
static int |
EVERYWHERE
searches for this address without bounds |
Method Summary | |
---|---|
void |
findNear(GeoCodingListener l,
java.lang.String search,
GeoCoordinate location,
int maxDistance)
Searches places defined by a search string in an area around a certain location. |
PointOfInterest[] |
findNear(java.lang.String search,
GeoCoordinate location,
int maxDistance)
Searches places defined by a search string in an area around a certain location. |
Field Detail |
---|
static final int EVERYWHERE
static final int ERROR_SERVICE_DOWN
static final int ERROR_NOT_FOUND
Method Detail |
---|
PointOfInterest[] findNear(java.lang.String search, GeoCoordinate location, int maxDistance) throws java.lang.UnsupportedOperationException
search
- place that is searchedlocation
- location near the placemaxDistance
- maximum distance between location and place
java.lang.UnsupportedOperationException
- if a synchronous call is not supportedvoid findNear(GeoCodingListener l, java.lang.String search, GeoCoordinate location, int maxDistance) throws java.lang.UnsupportedOperationException
l
- RoutingListener the result is delivered tosearch
- place that is searchedlocation
- location near the placemaxDistance
- maximum distance between location and place
java.lang.UnsupportedOperationException
- if an asynchronous call is not supported
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |