com.yahoo.search.xmlparser
Class XmlParserLocalSearchResults.XmlParserLocalSearchResult

java.lang.Object
  extended by com.yahoo.search.xmlparser.XmlParserLocalSearchResults.XmlParserLocalSearchResult
All Implemented Interfaces:
LocalSearchResult
Enclosing class:
XmlParserLocalSearchResults

public static class XmlParserLocalSearchResults.XmlParserLocalSearchResult
extends Object
implements LocalSearchResult


Constructor Summary
XmlParserLocalSearchResults.XmlParserLocalSearchResult(Map result)
           
 
Method Summary
 String getAddress()
          Street address of the result.
 String getBusinessClickUrl()
          The URL for linking to the businesses website if known.
 String getBusinessUrl()
          The URL of the businesses website, if known.
 String getCity()
          City in which the result is located.
 String getClickUrl()
          The URL for linking to the detailed page for a business.
 String getDistance()
          Distance in miles.
 String getMapUrl()
          The URL of a map for the address.
 String getPhone()
          Phone number of the business, if known.
 String getRating()
          End-user ratings for the business or service.
 String getState()
          State in which the result is located.
 String getTitle()
          Name of the result.
 String getUrl()
          The URL to the detailed page for a business.
 
Methods inherited from class java.lang.Object
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

XmlParserLocalSearchResults.XmlParserLocalSearchResult

public XmlParserLocalSearchResults.XmlParserLocalSearchResult(Map result)
Method Detail

getTitle

public String getTitle()
Description copied from interface: LocalSearchResult
Name of the result.

Specified by:
getTitle in interface LocalSearchResult
Returns:
Name of the result.

getAddress

public String getAddress()
Description copied from interface: LocalSearchResult
Street address of the result.

Specified by:
getAddress in interface LocalSearchResult
Returns:
Street address of the result.

getCity

public String getCity()
Description copied from interface: LocalSearchResult
City in which the result is located.

Specified by:
getCity in interface LocalSearchResult
Returns:
City in which the result is located.

getState

public String getState()
Description copied from interface: LocalSearchResult
State in which the result is located.

Specified by:
getState in interface LocalSearchResult
Returns:
State in which the result is located.

getPhone

public String getPhone()
Description copied from interface: LocalSearchResult
Phone number of the business, if known.

Specified by:
getPhone in interface LocalSearchResult
Returns:
Phone number of the business, if known.

getRating

public String getRating()
Description copied from interface: LocalSearchResult
End-user ratings for the business or service. This field is optional.

Specified by:
getRating in interface LocalSearchResult
Returns:
End-user ratings for the business or service.

getDistance

public String getDistance()
Description copied from interface: LocalSearchResult
Distance in miles.

The distance as calculated by one of the following methods:

Specified by:
getDistance in interface LocalSearchResult
Returns:
Distance in miles.

getUrl

public String getUrl()
Description copied from interface: LocalSearchResult
The URL to the detailed page for a business.

Specified by:
getUrl in interface LocalSearchResult
Returns:
The URL to the detailed page for a business.

getClickUrl

public String getClickUrl()
Description copied from interface: LocalSearchResult
The URL for linking to the detailed page for a business. See URL linking for more information.

Specified by:
getClickUrl in interface LocalSearchResult
Returns:
The URL for linking to the detailed page for a business.

getMapUrl

public String getMapUrl()
Description copied from interface: LocalSearchResult
The URL of a map for the address.

Specified by:
getMapUrl in interface LocalSearchResult
Returns:
The URL of a map for the address.

getBusinessUrl

public String getBusinessUrl()
Description copied from interface: LocalSearchResult
The URL of the businesses website, if known. This field is optional.

Specified by:
getBusinessUrl in interface LocalSearchResult
Returns:
The URL of the businesses website, if known.

getBusinessClickUrl

public String getBusinessClickUrl()
Description copied from interface: LocalSearchResult
The URL for linking to the businesses website if known. See URL linking for more information. This field is optional.

Specified by:
getBusinessClickUrl in interface LocalSearchResult
Returns:
The URL for linking to the businesses website if known.