public class GeoDistanceQuery extends Object implements Query
Common use case: Search for people within 1 kilometer of my location.
By setting my centerPoint (a geographic coordinate), and then setting the distance information as distanceInMeter=1000, the query can be performed.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GeoDistanceQuery.Builder |
| 构造器和说明 |
|---|
GeoDistanceQuery() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getCenterPoint() |
double |
getDistanceInMeter() |
String |
getFieldName() |
QueryType |
getQueryType() |
protected static GeoDistanceQuery.Builder |
newBuilder() |
com.aliyun.ots.thirdparty.com.google.protobuf.ByteString |
serialize() |
void |
setCenterPoint(String centerPoint) |
void |
setDistanceInMeter(double distanceInMeter) |
void |
setFieldName(String fieldName) |
public String getFieldName()
public void setFieldName(String fieldName)
public String getCenterPoint()
public void setCenterPoint(String centerPoint)
public double getDistanceInMeter()
public void setDistanceInMeter(double distanceInMeter)
public QueryType getQueryType()
getQueryType 在接口中 Querypublic com.aliyun.ots.thirdparty.com.google.protobuf.ByteString serialize()
protected static GeoDistanceQuery.Builder newBuilder()
Copyright © 2025. All Rights Reserved.