|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.mapquest.MQObject
com.mapquest.SearchCriteria
com.mapquest.RadiusSearchCriteria
Defines the criteria for a radius search. The radius to be searched is defined by the latitude/longitude of the Center and the radius of the circle.
LatLng,
DistanceUnits| Field Summary | |
static int |
CLASS_ID
|
static java.lang.String |
CLASS_NAME
|
| Fields inherited from class com.mapquest.MQObject |
DEFAULT_ID, DEFAULT_NAME, DEFAULT_VERSION, FORMAT_NUMERIC_ID, FORMAT_TEXT_NAME, INVALID_ID, INVALID_NAME, INVALID_VERSION |
| Constructor Summary | |
RadiusSearchCriteria()
Default Constructor. |
|
| Method Summary | |
boolean |
equals(java.lang.Object otherObject)
Compares this object to the specified object. |
LatLng |
getCenter()
Returns the Center (latitude/longitude) of the circle which defines the extent of the search area. |
int |
getClassId()
Returns the numeric id of this class. |
java.lang.String |
getClassName()
Returns the text name of this class. |
double |
getRadius()
Returns the radius of the circle which defines the extent of the search area. |
double |
getRadius(DistanceUnits du)
Returns the radius of the circle which defines the extent of the search area. |
int |
hashCode()
Returns a hash code for this RadiusSearchCriteria. |
void |
init()
Initializes object. |
void |
setCenter(LatLng ll)
Sets the latitude and longitude values of the Center point of the circle which defines the extent of the search area. |
void |
setRadius(double dRad)
Sets the radius of the circle which defines the extent of the search area. |
void |
setRadius(double dRad,
DistanceUnits du)
Sets the radius of the circle which defines the extent of the search area. |
| Methods inherited from class com.mapquest.SearchCriteria |
getMaxMatches, setMaxMatches |
| Methods inherited from class com.mapquest.MQObject |
clone, getFormat, getIdWithVersion, getNameWithVersion, getObjectVersion, getTypeId, getTypeName, getVerboseConsoleOutput, setFormat, setObjectVersion, setVerboseConsoleOutput, toString |
| Methods inherited from class java.lang.Object |
getClass, notify, notifyAll, wait, wait, wait |
| Field Detail |
public static final int CLASS_ID
public static final java.lang.String CLASS_NAME
| Constructor Detail |
public RadiusSearchCriteria()
| Method Detail |
public void init()
init in class SearchCriteriapublic int getClassId()
getClassId in class MQObjectpublic java.lang.String getClassName()
getClassName in class MQObjectpublic void setRadius(double dRad)
dRad - The radius that this object is to be set to.
public void setRadius(double dRad,
DistanceUnits du)
dRad - The radius that this object is to be set to.du - DistanceUnits Miles or KiloMeterspublic void setCenter(LatLng ll)
ll - The latitude/longitude values of the Center of this object.public double getRadius()
public double getRadius(DistanceUnits du)
du - DistanceUnits Miles or KiloMeters
public LatLng getCenter()
public boolean equals(java.lang.Object otherObject)
equals in class SearchCriteriaotherObject - the object to compare this RadiusSearchCriteria
against.
public int hashCode()
hashCode in class SearchCriteria
|
|||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||