public static class PoiSearch.SearchBound
extends java.lang.Object
implements java.lang.Cloneable
| 限定符和类型 | 字段和说明 |
|---|---|
static java.lang.String |
BOUND_SHAPE
圆形区域
Circular area |
static java.lang.String |
ELLIPSE_SHAPE
椭圆区域
Elliptical area |
static java.lang.String |
POLYGON_SHAPE
多边形区域
Polygonal area |
static java.lang.String |
RECTANGLE_SHAPE
矩形区域
Rectangular area |
| 构造器和说明 |
|---|
SearchBound(LatLonPoint center,
int radiusInMeters)
根据给定的参数来构造PoiSearch.SearchBound 的新对象,默认由近到远排序。
|
SearchBound(LatLonPoint center,
int radiusInMeters,
boolean isDistanceSort)
根据给定的参数来构造PoiSearch.SearchBound 的新对象,默认由近到远排序。
|
SearchBound(LatLonPoint lowerLeft,
LatLonPoint upperRight)
根据给定的参数来构造PoiSearch.SearchBound 的新对象。
|
SearchBound(java.util.List<LatLonPoint> list)
根据给定的参数来构造PoiSearch.SearchBound 的新对象。
|
| 限定符和类型 | 方法和说明 |
|---|---|
PoiSearch.SearchBound |
clone() |
boolean |
equals(java.lang.Object obj)
比较两个查询范围是否相同
Compare whether two search ranges are the same. |
LatLonPoint |
getCenter()
返回矩形中心点坐标。
|
LatLonPoint |
getLowerLeft()
返回矩形左下角坐标。
|
java.util.List<LatLonPoint> |
getPolyGonList()
返回首尾相接的几何点,可以组成多边形。
|
int |
getRange()
返回查询范围半径。
|
java.lang.String |
getShape()
返回查询范围形状。
|
LatLonPoint |
getUpperRight()
返回矩形右上角坐标。
|
int |
hashCode() |
boolean |
isDistanceSort()
返回是否按照距离排序。
|
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 ELLIPSE_SHAPE
public SearchBound(LatLonPoint center, int radiusInMeters)
如果超出中国边界或者radiusInMeters<=0,则抛出IllegalArgumentException 异常。
Construct a new PoiSearch.SearchBound object based on the given parameters, sorted from near to far by default.If it exceeds the Chinese border or radiusInMeters<=0, an IllegalArgumentException will be thrown.
center - 该范围的中心点。
radiusInMeters - 半径,单位:米。
public SearchBound(LatLonPoint center, int radiusInMeters, boolean isDistanceSort)
center - 该范围的中心点。
radiusInMeters - 半径,单位:米。
isDistanceSort - 是否按照距离排序。
public SearchBound(LatLonPoint lowerLeft, LatLonPoint upperRight)
如果超出中国边界或者lowerLeft>=upperRight,则抛出IllegalArgumentException 异常。
Construct a new PoiSearch.SearchBound object based on the given parameters.If it exceeds the Chinese border or lowerLeft>=upperRight, an IllegalArgumentException will be thrown.
lowerLeft - 矩形的左下角。
upperRight - 矩形的右上角。
public SearchBound(java.util.List<LatLonPoint> list)
list - 首尾相接的几何点,可以组成多边形。
public LatLonPoint getLowerLeft()
public LatLonPoint getUpperRight()
public LatLonPoint getCenter()
public int getRange()
public java.lang.String getShape()
public boolean isDistanceSort()
public java.util.List<LatLonPoint> getPolyGonList()
public int hashCode()
hashCode 在类中 java.lang.Objectpublic boolean equals(java.lang.Object obj)
equals 在类中 java.lang.Objectobj - 比较对象
public PoiSearch.SearchBound clone()
clone 在类中 java.lang.Object