|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
This interface defines a service object that can find businesses in a given area that match either a name or category. In contrast to YPFinderSimple, this interface also defines two functions that are independent from the external provider. They are thus only implemented in the managing class YPFinderImpl, not in the provider-specific classes YPFinderImplXXXXX. Any class implementing this interface should be thread-safe.
Method Summary |
Type | Method |
---|---|
java.util.Vector |
getCategoriesByID(java.lang.String providerName,
java.lang.String id)
|
YPCategory |
getCategoryAtPath(java.lang.String[] categoriesOnPath)
This returns the category at the specified path from the root of the customized local hierarchy. |
YPCategory |
getCategoryAtRoot()
This returns the category at the root of the customized local hierarchy. |
YPCategory |
getCategoryByID(java.lang.String providerName,
java.lang.String id)
|
YPBusiness[] |
getKeywordRelatedBusinessesInCity(java.lang.String keyword,
java.lang.String country,
java.lang.String state,
java.lang.String city,
java.util.Locale locale)
This returns all businesses matching a specified keyword in a specified city. |
YPBusiness[] |
getKeywordRelatedBusinessesInPCode(java.lang.String keyword,
java.lang.String country,
java.lang.String postalCode,
java.util.Locale locale)
This returns all businesses matching a specified keyword in a specified postal code. |
YPBusiness[] |
getKeywordRelatedBusinessesInRadius(java.lang.String keyword,
Point location,
double metersRadius,
java.util.Locale locale)
This returns all businesses matching a specified keyword in a specified radius. |
YPBusiness[] |
getKeywordRelatedBusinessesInState(java.lang.String keyword,
java.lang.String country,
java.lang.String state,
java.util.Locale locale)
This returns all businesses matching a specified keyword in a specified state. |
YPBusiness[] |
getNearestNKeywordRelatedBusinesses(java.lang.String keyword,
Point location,
int n,
java.util.Locale locale)
This returns the N businesses closest to a given center point. |
Method Detail |
public YPCategory getCategoryAtRoot()
public YPCategory getCategoryAtPath(java.lang.String[] categoriesOnPath)
categoriesOnPath
- an array of String representing the names of
categories along the path to the requested
category (must not be null)public YPCategory getCategoryByID(java.lang.String providerName, java.lang.String id)
public java.util.Vector getCategoriesByID(java.lang.String providerName, java.lang.String id)
public YPBusiness[] getKeywordRelatedBusinessesInCity(java.lang.String keyword, java.lang.String country, java.lang.String state, java.lang.String city, java.util.Locale locale)
keyword
- a String representing a keyword that might be either
in a business name or a category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)city
- a String
representing the city (must not be null)locale
- a Locale object that can affect language, measures of
distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInState(java.lang.String keyword, java.lang.String country, java.lang.String state, java.util.Locale locale)
keyword
- a String representing a keyword that might be either
in a business name or a category (must not be null)country
- a String representing the country (must not be null)state
- a String representing the state (must not be null)locale
- a Locale
object that can affect language, measures of
distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInRadius(java.lang.String keyword, Point location, double metersRadius, java.util.Locale locale)
keyword
- a String representing a keyword that might be either
in a business name or a category (must not be null)location
- a PointImpl representing the center of the circle (must
not be null)metersRadius
- a double representing the radius in meters (must not
be null)locale
- a Locale object that can affect language, measures of
distance, ... (may be null)public YPBusiness[] getKeywordRelatedBusinessesInPCode(java.lang.String keyword, java.lang.String country, java.lang.String postalCode, java.util.Locale locale)
keyword
- a String representing a keyword that might be either
in a business name or a category (must not be null)country
- a String representing the country (must not be null)postalCode
- a String representing the postal code (must not be
null)locale
- a Locale object that can affect language, measures of
distance, ... (may be null)public YPBusiness[] getNearestNKeywordRelatedBusinesses(java.lang.String keyword, Point location, int n, java.util.Locale locale)
keyword
- a String representing a keyword that might be either
in a business name or a category (must not be null)location
- a Point representing the center point of the query
(must not be null)n
- an int representing the number of businesses
("closest N")locale
- a Locale object that can affect language, measures of
distance, ... (may be null)
|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |