All Products
Search
Document Center

Tablestore:GeoBoundingBoxQuery

Last Updated:May 09, 2024

GeoBoundingBoxQuery specifies the configurations of a geo-bounding box query. You can specify a rectangular geographical area as a query condition. Tablestore returns the rows in which the value of the specified column falls within the rectangular geographical area.

Data structure

message GeoBoundingBoxQuery {
    optional string field_name = 1;
    optional string top_left = 2;
    optional string bottom_right = 3;
}

Parameter

Type

Required

Description

field_name

string

Yes

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

top_left

string

Yes

The coordinates of the upper-left and lower-right corners of the rectangular 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.

The coordinates of the upper-left and lower-right corners can determine the location of the rectangular area.

bottom_right

string

Yes