com.stackmob.sdkapi
Class SMWithinBox

java.lang.Object
  extended by com.stackmob.sdkapi.SMCondition
      extended by com.stackmob.sdkapi.SMWithinBox

public class SMWithinBox
extends SMCondition

A "within" query for searching within a rectangular area


Constructor Summary
SMWithinBox(String field, double latLL, double lonLL, double latUR, double lonUR)
          Create a new SMWithinBox query
SMWithinBox(String field, SMDouble latLL, SMDouble lonLL, SMDouble latUR, SMDouble lonUR)
          Create a new SMWithinBox query
 
Method Summary
 String getField()
           
 SMDouble getLatLL()
           
 SMDouble getLatUR()
           
 SMDouble getLonLL()
           
 SMDouble getLonUR()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMWithinBox

public SMWithinBox(String field,
                   SMDouble latLL,
                   SMDouble lonLL,
                   SMDouble latUR,
                   SMDouble lonUR)
Create a new SMWithinBox query

Parameters:
field - the geoField to query
latLL - the latitude of the lower-left corner of the bounding rectangle
lonLL - the longitude of the lower-left corner of the bounding rectangle
latUR - the latitute of the upper-right corner of the bounding rectangle
lonUR - 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 query
latLL - the latitude of the lower-left corner of the bounding rectangle
lonLL - the longitude of the lower-left corner of the bounding rectangle
latUR - the latitute of the upper-right corner of the bounding rectangle
lonUR - the longitude of the upper-right corner of the bounding rectangle
Method Detail

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.