com.stackmob.sdkapi
Class SMWithin

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

public class SMWithin
extends SMCondition

A "within" query


Constructor Summary
SMWithin(String field, double lat, double lon, double dist)
          Create a new SMWithin query
SMWithin(String field, SMDouble lat, SMDouble lon, SMDouble dist)
          Create a new SMWithin query
 
Method Summary
 SMDouble getDist()
           
 String getField()
           
 SMDouble getLat()
           
 SMDouble getLon()
           
 String toString()
           
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
 

Constructor Detail

SMWithin

public SMWithin(String field,
                SMDouble lat,
                SMDouble lon,
                SMDouble dist)
Create a new SMWithin query

Parameters:
field - the geoField to query
lat - the latitude of the location to search
lon - the longitude of the location to search
dist - the distance, in radians of the search circle

SMWithin

public SMWithin(String field,
                double lat,
                double lon,
                double dist)
Create a new SMWithin query

Parameters:
field - the geoField to query
lat - the latitude of the location to search
lon - the longitude of the location to search
dist - the distance, in radians of the search circle
Method Detail

getField

public String getField()

getLat

public SMDouble getLat()

getLon

public SMDouble getLon()

getDist

public SMDouble getDist()

toString

public String toString()
Overrides:
toString in class Object


Copyright © 2012 StackMob. All Rights Reserved.