public class RoutePOISearch
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
RoutePOISearch.OnRoutePOISearchListener
本类为沿途搜索POI(Point Of Interest,兴趣点)结果的异步处理回调接口。
|
static class |
RoutePOISearch.RoutePOISearchType
搜索的type类型
TypeGasStation 加油站;TypeMaintenanceStation 维修站;TypeATM 自助银行;TypeToilet 卫生间。
|
限定符和类型 | 字段和说明 |
---|---|
static int |
DrivingAvoidCongestion
避免拥堵。
|
static int |
DrivingDefault
速度优先。
|
static int |
DrivingNoExpressways
不走快速路。
|
static int |
DrivingNoHighAvoidCongestionSaveMoney
不走高速且躲避收费和拥堵。
|
static int |
DrivingNoHighWay
不走高速。
|
static int |
DrivingNoHighWaySaveMoney
不走高速且避免收费。
|
static int |
DrivingSaveMoney
费用优先(不走收费路的最快道路)。
|
static int |
DrivingSaveMoneyAvoidCongestion
避免收费与拥堵。
|
static int |
DrivingShortDistance
距离优先。
|
构造器和说明 |
---|
RoutePOISearch(Context context,
RoutePOISearchQuery query)
沿途搜索构造方法。
|
限定符和类型 | 方法和说明 |
---|---|
RoutePOISearchResult |
searchRoutePOI()
沿途搜索同步查询接口。
|
void |
searchRoutePOIAsyn()
沿途搜索POI异步查询接口。
|
void |
setPoiSearchListener(RoutePOISearch.OnRoutePOISearchListener listener)
设置查询监听接口。
|
void |
setQuery(RoutePOISearchQuery query)
设置查询条件。
|
public static final int DrivingDefault
public static final int DrivingSaveMoney
public static final int DrivingShortDistance
public static final int DrivingNoExpressways
public static final int DrivingAvoidCongestion
public static final int DrivingNoHighWay
public static final int DrivingNoHighWaySaveMoney
public static final int DrivingSaveMoneyAvoidCongestion
public static final int DrivingNoHighAvoidCongestionSaveMoney
public RoutePOISearch(Context context, RoutePOISearchQuery query) throws AMapException
context
- 对应的Context。query
- 查询条件。AMapException
public void setPoiSearchListener(RoutePOISearch.OnRoutePOISearchListener listener)
listener
- 查询监听接口。public void setQuery(RoutePOISearchQuery query)
query
- 查询条件。public void searchRoutePOIAsyn()
public RoutePOISearchResult searchRoutePOI() throws AMapException
AMapException