GeoDistanceQuery specifies the configurations of a geo-distance query. You can specify a circular geographical area that consists of a central point and radius as a query condition. Tablestore returns the rows in which the value of the specified column falls within the geographical circular area.
Data structure
message GeoDistanceQuery {
optional string field_name = 1;
optional string center_point = 2;
optional double distance = 3;
}
Parameter | Type | Required | Description |
field_name | string | Yes | The name of the attribute column. The column type must be GeoPoint. |
center_point | string | Yes | The coordinate pair of the central point. The coordinate pair consists of latitude and longitude values. The value must be in the |
distance | double | Yes | The radius of the circular geographic area. Unit: meter. |