com.stackmob.sdkapi
Class SMWithinBox
java.lang.Object
com.stackmob.sdkapi.SMCondition
com.stackmob.sdkapi.SMWithinBox
public class SMWithinBox
- extends SMCondition
A "within" query for searching within a rectangular area
SMWithinBox
public SMWithinBox(String field,
SMDouble latLL,
SMDouble lonLL,
SMDouble latUR,
SMDouble lonUR)
- Create a new SMWithinBox query
- Parameters:
field - the geoField to querylatLL - the latitude of the lower-left corner of the bounding rectanglelonLL - the longitude of the lower-left corner of the bounding rectanglelatUR - the latitute of the upper-right corner of the bounding rectanglelonUR - the longitude of the upper-right corner of the bounding rectangle
SMWithinBox
public SMWithinBox(String field,
double latLL,
double lonLL,
double latUR,
double lonUR)
- Create a new SMWithinBox query
- Parameters:
field - the geoField to querylatLL - the latitude of the lower-left corner of the bounding rectanglelonLL - the longitude of the lower-left corner of the bounding rectanglelatUR - the latitute of the upper-right corner of the bounding rectanglelonUR - the longitude of the upper-right corner of the bounding rectangle
getField
public String getField()
getLatLL
public SMDouble getLatLL()
getLonLL
public SMDouble getLonLL()
getLatUR
public SMDouble getLatUR()
getLonUR
public SMDouble getLonUR()
toString
public String toString()
- Overrides:
toString in class Object
Copyright © 2012 StackMob. All Rights Reserved.