com.stackmob.sdkapi
Class SMNear
java.lang.Object
com.stackmob.sdkapi.SMCondition
com.stackmob.sdkapi.SMNear
public class SMNear
- extends SMCondition
A "near" query. A near query will add the distance from the search center to query results, and will automatically sort query results by their distance from the search center.
SMNear
public SMNear(String field,
SMDouble lat,
SMDouble lon,
SMDouble dist)
- Create a new SMNear query
- Parameters:
field - the geoField to querylat - the latitude of the location to searchlon - the longitude of the location to searchdist - the distance, in radians, to search, used to limit search results
SMNear
public SMNear(String field,
double lat,
double lon,
double dist)
- Create a new SMNear query
- Parameters:
field - the geoField to querylat - the latitude of the location to searchlon - the longitude of the location to searchdist - the distance, in radians, to search, used to limit search results
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.