public static class CloudSearch.SearchBound
extends java.lang.Object
implements java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
BOUND_SHAPE
圆形区域
Circular area |
static java.lang.String |
LOCAL_SHAPE
本地搜索
Local search |
static java.lang.String |
POLYGON_SHAPE
多边形区域
Polygonal area |
static java.lang.String |
RECTANGLE_SHAPE
矩形区域
Rectangular area |
| 构造器和说明 |
|---|
SearchBound(LatLonPoint center,
int radiusInMeters)
根据给定的参数来构造一个圆形查询范围对象
Construct a circular query range object based on the given parameters. |
SearchBound(LatLonPoint lowerLeft,
LatLonPoint upperRight)
根据给定的参数来构造一个矩形查询范围对象
Construct a rectangular query range object based on the given parameters. |
SearchBound(java.util.List<LatLonPoint> polygonList)
根据给定的参数来构造一个多边形查询范围对象
Construct a polygon query range object based on the given parameters. |
SearchBound(java.lang.String city)
根据城市名称构造查询范围对象,适用于本地搜索
Construct a query range object based on city names, suitable for local search. |
| 限定符和类型 | 方法和说明 |
|---|---|
CloudSearch.SearchBound |
clone() |
boolean |
equals(java.lang.Object bound)
比较两个企业地图查询范围是否相同
Compare whether the query ranges of two enterprise maps are the same. |
LatLonPoint |
getCenter()
返回查询圆形的中心点坐标
Returns the center point coordinates of the query circle. |
java.lang.String |
getCity()
返回查询的城市名称,适用于本地搜索
Returns the city name of the query, applicable for local search. |
LatLonPoint |
getLowerLeft()
返回查询矩形的左下角坐标
Returns the lower-left corner coordinates of the query rectangle. |
java.util.List<LatLonPoint> |
getPolyGonList()
返回查询多边形的坐标点
Returns the coordinate points of the queried polygon. |
int |
getRange()
返回查询圆形的范围(半径)
Returns the range (radius) of the queried circle. |
java.lang.String |
getShape()
返回查询的形状
Returns the shape of the query. |
LatLonPoint |
getUpperRight()
返回查询矩形的右上角坐标
Returns the upper-right corner coordinates of the query rectangle. |
int |
hashCode() |
public static final java.lang.String BOUND_SHAPE
public static final java.lang.String POLYGON_SHAPE
public static final java.lang.String RECTANGLE_SHAPE
public static final java.lang.String LOCAL_SHAPE
public SearchBound(LatLonPoint center, int radiusInMeters)
center - 该范围的中心点。经纬度小数点后不建议超过6位
radiusInMeters - 半径,单位:米。
public SearchBound(LatLonPoint lowerLeft, LatLonPoint upperRight)
lowerLeft - 矩形的左下角。
upperRight - 矩形的右上角。
SearchBound(List)public SearchBound(java.util.List<LatLonPoint> polygonList)
规则:
面积最大1万平方公里
wkt格式并兼容“逗号分隔的一对经纬度代表一个坐标,用分号分割多个坐标”
如果只传两个坐标则认为这两坐标为矩形的左下和右上点;
多边形数据的起点和终点必须相同,保证图形闭合。
经纬度小数点后不建议超过6位
示例:
- 矩形:
polygon=116.374634,39.377362;116.673646,39.576462
- 多边形:
polygon=115.7409668,40.12009038;115.59127808,39.98869502;115.8631897, 39.91816285;115.92224121,40.06546068;115.7409668,40.12009038
Rules:
Maximum area of 10,000 square kilometers
WKT format and compatible with \"a pair of longitude and latitude separated by commas represents a coordinate, multiple coordinates separated by semicolons\"
If only two coordinates are passed, they are considered as the lower-left and upper-right points of the rectangle.
The start and end points of the polygon data must be the same to ensure the shape is closed.
It is not recommended to exceed 6 decimal places for longitude and latitude.
Examples:
- Rectangle:
polygon=116.374634,39.377362;116.673646,39.576462
- Polygon:
polygon=115.7409668,40.12009038;115.59127808,39.98869502;115.8631897, 39.91816285;115.92224121,40.06546068;115.7409668,40.12009038
polygonList - 首尾相接的几何点,可以组成多边形。注意:起始坐标点和最后坐标点需保持相同。
public SearchBound(java.lang.String city)
city - 城市名称,取值为省/市/区县。输入“全国”,为本表全部搜索。
public LatLonPoint getLowerLeft()
public LatLonPoint getUpperRight()
public LatLonPoint getCenter()
public int getRange()
public java.lang.String getShape()
public java.lang.String getCity()
public java.util.List<LatLonPoint> getPolyGonList()
public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object bound)
equals 在类中 java.lang.Objectbound - 查询条件
public CloudSearch.SearchBound clone()
clone 在类中 java.lang.Object