public class GeoPolygonQuery extends Object implements Query
Note: This query has a high cost and should be avoided if possible.
Use case example: A bike-sharing service only operates in bustling urban areas, and an extra service fee is charged outside the city limits. The boundary of the urban area is defined by a polygon. To determine whether the bike is inside or outside this area (and thus whether an extra fee is required), we need to check if the user's latitude and longitude fall within the polygon.
| 限定符和类型 | 类和说明 |
|---|---|
static class |
GeoPolygonQuery.Builder |
| 构造器和说明 |
|---|
GeoPolygonQuery() |
| 限定符和类型 | 方法和说明 |
|---|---|
String |
getFieldName() |
List<String> |
getPoints() |
QueryType |
getQueryType() |
protected static GeoPolygonQuery.Builder |
newBuilder() |
com.aliyun.ots.thirdparty.com.google.protobuf.ByteString |
serialize() |
void |
setFieldName(String fieldName) |
void |
setPoints(List<String> points) |
public String getFieldName()
public void setFieldName(String fieldName)
public QueryType getQueryType()
getQueryType 在接口中 Querypublic com.aliyun.ots.thirdparty.com.google.protobuf.ByteString serialize()
protected static GeoPolygonQuery.Builder newBuilder()
Copyright © 2025. All Rights Reserved.