|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectcom.yahoo.rest.RestRequest
com.yahoo.search.LocalSearchRequest
public class LocalSearchRequest
Local search request object.
| Constructor Summary | |
|---|---|
LocalSearchRequest(String query)
Constructs a new local search request. |
|
| Method Summary | |
|---|---|
void |
setCity(String city)
City name. |
void |
setLatitude(String latitude)
Sets the latitude of the local area to search. |
void |
setLocation(String location)
Sets the location portion of the search as a string. |
void |
setLongitude(String longitude)
Sets the longitude of the local area to search. |
void |
setQuery(String query)
|
void |
setRadius(float radius)
How far from the specified location to search for the query terms. |
void |
setResults(int results)
The maximum number of results to return. |
void |
setSort(String sort)
Sets the sort order for local search results. |
void |
setStart(BigInteger start)
The starting result position. |
void |
setState(String state)
The United States state. |
void |
setStreet(String street)
Street name, the number is optional. |
void |
setZip(String zip)
The five-digit zip code, or the five-digit code plus four-digit extension. |
| Methods inherited from class com.yahoo.rest.RestRequest |
|---|
addParameter, clearParameter, getParameters, getRequestUrl, setParameter, setRequestUrl |
| Methods inherited from class java.lang.Object |
|---|
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public LocalSearchRequest(String query)
query - The query to search for. This is the only required attribute.| Method Detail |
|---|
public void setQuery(String query)
public void setResults(int results)
results - The maximum number of results to return.public void setStart(BigInteger start)
start - The starting result position.public void setRadius(float radius)
radius - How far from the specified location to search for the query terms.public void setStreet(String street)
street - Street name, the number is optional.public void setCity(String city)
city - City name.public void setState(String state)
state - The United States state.public void setZip(String zip)
zip - The five-digit zip code, or the five-digit code plus four-digit extension.public void setLocation(String location)
location - Free text location field.public void setLatitude(String latitude)
latitude - The latitude of the local area to search.public void setLongitude(String longitude)
longitude - The longitude of the local area to search.public void setSort(String sort)
sort - The sort order for local search results.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||