Package gov.nasa.worldwind.poi
Class YahooGazetteer
- java.lang.Object
-
- gov.nasa.worldwind.poi.YahooGazetteer
-
-
Field Summary
Fields Modifier and Type Field Description protected static java.lang.StringGEOCODE_SERVICE
-
Constructor Summary
Constructors Constructor Description YahooGazetteer()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description java.util.List<PointOfInterest>findPlaces(java.lang.String lookupString)Find places identified in a string of free text.protected booleanisNumber(java.lang.String lookupString)protected java.util.ArrayList<PointOfInterest>parseLocationString(java.lang.String locationString)
-
-
-
Field Detail
-
GEOCODE_SERVICE
protected static final java.lang.String GEOCODE_SERVICE
- See Also:
- Constant Field Values
-
-
Method Detail
-
findPlaces
public java.util.List<PointOfInterest> findPlaces(java.lang.String lookupString) throws NoItemException, ServiceException
Description copied from interface:GazetteerFind places identified in a string of free text.- Specified by:
findPlacesin interfaceGazetteer- Parameters:
lookupString- a string containing the place description.- Returns:
- the points-of-interest that match the place description.
- Throws:
NoItemException- if the place description cannot be matched.ServiceException- if the lookup service is not available or invocation of it fails.
-
isNumber
protected boolean isNumber(java.lang.String lookupString)
-
parseLocationString
protected java.util.ArrayList<PointOfInterest> parseLocationString(java.lang.String locationString) throws WWRuntimeException
- Throws:
WWRuntimeException
-
-