All Products
Search
Document Center

Tablestore:GeoPolygonQuery

Last Updated:May 09, 2024

GeoPolygonQuery specifies the configurations of a geo-polygon query. You can specify a polygonal geographical area as a query condition. Tablestore returns the rows in which the value of the specified column falls within the polygonal geographical area.

Data structure

message GeoPolygonQuery {
    optional string field_name = 1;
    repeated string points = 2;
}

Parameter

Type

Required

Description

field_name

string

Yes

The name of the attribute column. The column type must be GeoPoint.

points

string

Yes

The coordinate pairs of the points that define the polygon geographic area. The value must be in the latitude,longitude format. Valid values of latitude: [-90,+90]. Valid values of longitude: [-180,+180]. For example, you can specify 35.8,-45.91.