Modifier and Type | Field and Description |
---|---|
protected static String |
GEOCODE_SERVICE |
Constructor and Description |
---|
YahooGazetteer() |
Modifier and Type | Method and Description |
---|---|
List<PointOfInterest> |
findPlaces(String lookupString)
Find places identified in a string of free text.
|
protected boolean |
isNumber(String lookupString) |
protected ArrayList<PointOfInterest> |
parseLocationString(String locationString) |
protected static final String GEOCODE_SERVICE
public List<PointOfInterest> findPlaces(String lookupString) throws NoItemException, ServiceException
Gazetteer
findPlaces
in interface Gazetteer
lookupString
- a string containing the place description.NoItemException
- if the place description cannot be matched.ServiceException
- if the lookup service is not available or invocation of it fails.protected boolean isNumber(String lookupString)
protected ArrayList<PointOfInterest> parseLocationString(String locationString) throws WWRuntimeException
WWRuntimeException