|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||
java.lang.Objectno.sesat.search.mode.command.GeoSearchUtil
public final class GeoSearchUtil
Utility class for Geographical bounding box and circle transformations. Converts a bounding box to a centerpoint with radius. An example usecase is from map's current bounding box to be able to using the centerpoint with radius to search in this geographical area.
| Field Summary | |
|---|---|
static String |
GEO_SORT_BY
Deprecated. will be removed in next release. is a definition provided by the search, not this class. |
static String |
RADIUS_MEASURE_UNIT_TYPE
Deprecated. will be removed in next release. is a definition provided by the search, not this class. |
| Method Summary | |
|---|---|
static String |
getCenter(ParametersDataObject requestParameters)
Calcluates a center point from minX,maxX,minY,maxY parameters. |
static String |
getRadiusRestriction(ParametersDataObject pdo)
Retruns the radius to search from a given centerpoint or map selection. |
static boolean |
hasCenterPoint(ParametersDataObject requestParameters)
Responsible for checking if a ParameterDataObject has parameters for centerpoint. |
static boolean |
isGeoSearch(ParametersDataObject requestParameters)
Responsible for checking if the parameters found in the ParameterDataObject is enough to calculate getCenter(..) getRadiusRestriction(..) |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final String RADIUS_MEASURE_UNIT_TYPE
public static final String GEO_SORT_BY
| Method Detail |
|---|
public static String getCenter(ParametersDataObject requestParameters)
requestParameters - Parameters for the request.
public static boolean isGeoSearch(ParametersDataObject requestParameters)
requestParameters -
public static boolean hasCenterPoint(ParametersDataObject requestParameters)
requestParameters - The ParameterDataObject to check.
public static String getRadiusRestriction(ParametersDataObject pdo)
pdo - The ParameterDataObject.
|
||||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | |||||||||