NASA World Wind

gov.nasa.worldwind.poi
Class YahooGazetteer

java.lang.Object
  extended by gov.nasa.worldwind.avlist.AVListImpl
      extended by gov.nasa.worldwind.WWObjectImpl
          extended by gov.nasa.worldwind.poi.YahooGazetteer
All Implemented Interfaces:
AVList, Gazetteer, WWObject, PropertyChangeListener, EventListener

public class YahooGazetteer
extends WWObjectImpl
implements Gazetteer

A gazetteer that uses Yahoo's geocoding service to find locations for requested places.


Field Summary
protected static String GEOCODE_SERVICE
           
 
Fields inherited from class gov.nasa.worldwind.avlist.AVListImpl
changeSupport
 
Constructor Summary
YahooGazetteer()
           
 
Method Summary
 List<PointOfInterest> findPlaces(String lookupString)
          Find places identified in a string of free text.
protected  ArrayList<PointOfInterest> parseLocationString(String locationString)
           
 
Methods inherited from class gov.nasa.worldwind.WWObjectImpl
propertyChange
 
Methods inherited from class gov.nasa.worldwind.avlist.AVListImpl
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getDoubleValue, getDoubleValue, getEntries, getIntegerValue, getIntegerValue, getLongValue, getLongValue, getStringValue, getStringValue, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface gov.nasa.worldwind.avlist.AVList
addPropertyChangeListener, addPropertyChangeListener, clearList, copy, firePropertyChange, firePropertyChange, getEntries, getStringValue, getValue, getValues, hasKey, removeKey, removePropertyChangeListener, removePropertyChangeListener, setValue, setValues
 
Methods inherited from interface java.beans.PropertyChangeListener
propertyChange
 

Field Detail

GEOCODE_SERVICE

protected static final String GEOCODE_SERVICE
See Also:
Constant Field Values
Constructor Detail

YahooGazetteer

public YahooGazetteer()
Method Detail

findPlaces

public List<PointOfInterest> findPlaces(String lookupString)
                                 throws NoItemException,
                                        ServiceException
Description copied from interface: Gazetteer
Find places identified in a string of free text.

Specified by:
findPlaces in interface Gazetteer
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.

parseLocationString

protected ArrayList<PointOfInterest> parseLocationString(String locationString)
                                                  throws WWRuntimeException
Throws:
WWRuntimeException

NASA World Wind