public class ShareSearch
extends java.lang.Object
限定符和类型 | 类和说明 |
---|---|
static interface |
ShareSearch.OnShareSearchListener
此接口定义了短串分享的异步处理回调接口。
|
static class |
ShareSearch.ShareBusRouteQuery
此类定义了公交路径规划的起点、终点、公交路径规划策略。
|
static class |
ShareSearch.ShareDrivingRouteQuery
此类定义了驾车路径规划的起点、终点、路径规划策略。
|
static class |
ShareSearch.ShareFromAndTo
此类定义了短串分享的坐标、分享名称。
|
static class |
ShareSearch.ShareNaviQuery
此类定义了导航分享的起点、终点、驾车策略。
|
static class |
ShareSearch.ShareWalkRouteQuery
此类定义了步行路径规划的起点、终点、步行路径规划策略。
|
限定符和类型 | 字段和说明 |
---|---|
static int |
BusComfortable
最舒适模式(公交路径规划)
|
static int |
BusDefault
最快捷模式(公交路径规划)
|
static int |
BusLeaseChange
最少换乘模式(公交路径规划)
|
static int |
BusLeaseWalk
最少步行模式(公交路径规划)
|
static int |
BusNoSubway
不乘地铁模式(公交路径规划)
|
static int |
BusSaveMoney
最经济模式(公交路径规划)
|
static int |
DrivingAvoidCongestion
躲避拥堵(驾车路径规划)
|
static int |
DrivingDefault
速度最快(驾车路径规划)
|
static int |
DrivingNoHighWay
不走高速(驾车路径规划)
|
static int |
DrivingNoHighWayAvoidCongestion
不走高速且躲避拥堵(驾车路径规划)
|
static int |
DrivingNoHighWaySaveMoney
不走高速且避免收费(驾车路径规划)
|
static int |
DrivingNoHighWaySaveMoneyAvoidCongestion
不走高速躲避收费和拥堵(驾车路径规划)
|
static int |
DrivingSaveMoney
费用少(驾车路径规划)
|
static int |
DrivingSaveMoneyAvoidCongestion
躲避收费和拥堵(驾车路径规划)
|
static int |
DrivingShortDistance
距离优先(驾车路径规划)
|
static int |
NaviAvoidCongestion
躲避拥堵
|
static int |
NaviDefault
速度最快
|
static int |
NaviNoHighWay
不走高速
|
static int |
NaviNoHighWayAvoidCongestion
不走高速且躲避拥堵
|
static int |
NaviNoHighWaySaveMoney
不走高速且避免收费
|
static int |
NaviNoHighWaySaveMoneyAvoidCongestion
不走高速躲避收费和拥堵
|
static int |
NaviSaveMoney
费用少
|
static int |
NaviSaveMoneyAvoidCongestion
躲避收费和拥堵
|
static int |
NaviShortDistance
距离优先
|
构造器和说明 |
---|
ShareSearch(Context context)
根据给定的参数来构造一个ShareSearch的新对象。
|
限定符和类型 | 方法和说明 |
---|---|
java.lang.String |
searchBusRouteShareUrl(ShareSearch.ShareBusRouteQuery shareBusRouteQuery)
根据指定的参数获取公交路径规划分享的短串地址。
|
void |
searchBusRouteShareUrlAsyn(ShareSearch.ShareBusRouteQuery shareBusRouteQuery)
(异步处理)根据指定的参数来进行公交路径规划分享的异步处理。
|
java.lang.String |
searchDrivingRouteShareUrl(ShareSearch.ShareDrivingRouteQuery drivingRouteQuery)
根据指定的参数获取驾车路径规划分享的短串地址。
|
void |
searchDrivingRouteShareUrlAsyn(ShareSearch.ShareDrivingRouteQuery drivingRouteQuery)
(异步处理)根据指定的参数来进行驾车路径规划分享的异步处理。
|
java.lang.String |
searchLocationShareUrl(LatLonSharePoint locationQuery)
根据指定的参数获取位置分享的短串地址。
|
void |
searchLocationShareUrlAsyn(LatLonSharePoint locationQuery)
(异步处理)根据指定的参数来进行定位位置分享的异步处理。
|
java.lang.String |
searchNaviShareUrl(ShareSearch.ShareNaviQuery naviQuery)
根据指定的参数获取导航分享的短串地址。
|
void |
searchNaviShareUrlAsyn(ShareSearch.ShareNaviQuery naviQuery)
(异步处理)根据指定的参数来进行导航分享的异步处理。
|
java.lang.String |
searchPoiShareUrl(PoiItem poiitem)
根据指定的参数获取POI分享的短串地址。
|
void |
searchPoiShareUrlAsyn(PoiItem poiitem)
(异步处理)根据指定的参数来进行POI分享的异步处理。
|
java.lang.String |
searchWalkRouteShareUrl(ShareSearch.ShareWalkRouteQuery walkRouteQuery)
根据指定的参数获取步行路径规划分享的短串地址。
|
void |
searchWalkRouteShareUrlAsyn(ShareSearch.ShareWalkRouteQuery walkRouteQuery)
(异步处理)根据指定的参数来进行步行路径规划分享的异步处理。
|
void |
setOnShareSearchListener(ShareSearch.OnShareSearchListener onShareSearchListener)
短串分享结果监听接口设置。
|
public static final int BusDefault
public static final int BusSaveMoney
public static final int BusLeaseChange
public static final int BusLeaseWalk
public static final int BusComfortable
public static final int BusNoSubway
public static final int DrivingDefault
public static final int DrivingSaveMoney
public static final int DrivingShortDistance
public static final int DrivingNoHighWay
public static final int DrivingAvoidCongestion
public static final int DrivingNoHighWaySaveMoney
public static final int DrivingNoHighWayAvoidCongestion
public static final int DrivingSaveMoneyAvoidCongestion
public static final int DrivingNoHighWaySaveMoneyAvoidCongestion
public static final int NaviDefault
public static final int NaviSaveMoney
public static final int NaviShortDistance
public static final int NaviNoHighWay
public static final int NaviAvoidCongestion
public static final int NaviNoHighWaySaveMoney
public static final int NaviNoHighWayAvoidCongestion
public static final int NaviSaveMoneyAvoidCongestion
public static final int NaviNoHighWaySaveMoneyAvoidCongestion
public ShareSearch(Context context) throws AMapException
context
- 对应的Context。AMapException
public void setOnShareSearchListener(ShareSearch.OnShareSearchListener onShareSearchListener)
onShareSearchListener
- 短串分享结果监听接口。public void searchPoiShareUrlAsyn(PoiItem poiitem)
poiitem
- 分享的信息。public void searchBusRouteShareUrlAsyn(ShareSearch.ShareBusRouteQuery shareBusRouteQuery)
shareBusRouteQuery
- 分享的信息。public void searchWalkRouteShareUrlAsyn(ShareSearch.ShareWalkRouteQuery walkRouteQuery)
walkRouteQuery
- 分享的信息。public void searchDrivingRouteShareUrlAsyn(ShareSearch.ShareDrivingRouteQuery drivingRouteQuery)
drivingRouteQuery
- 分享的信息。public void searchNaviShareUrlAsyn(ShareSearch.ShareNaviQuery naviQuery)
naviQuery
- 分享的信息。public void searchLocationShareUrlAsyn(LatLonSharePoint locationQuery)
locationQuery
- 分享的信息。public java.lang.String searchPoiShareUrl(PoiItem poiitem) throws AMapException
poiitem
- 分享的参数。仅支持POI id、经纬度、名称、地址的传入。AMapException
public java.lang.String searchNaviShareUrl(ShareSearch.ShareNaviQuery naviQuery) throws AMapException
naviQuery
- 分享的参数。AMapException
public java.lang.String searchLocationShareUrl(LatLonSharePoint locationQuery) throws AMapException
locationQuery
- 分享的参数。AMapException
public java.lang.String searchBusRouteShareUrl(ShareSearch.ShareBusRouteQuery shareBusRouteQuery) throws AMapException
shareBusRouteQuery
- 分享的参数。AMapException
public java.lang.String searchDrivingRouteShareUrl(ShareSearch.ShareDrivingRouteQuery drivingRouteQuery) throws AMapException
drivingRouteQuery
- 分享的参数。AMapException
public java.lang.String searchWalkRouteShareUrl(ShareSearch.ShareWalkRouteQuery walkRouteQuery) throws AMapException
walkRouteQuery
- 分享的参数。AMapException