AutoSDK
500
|
AOS算路选项 更多...
Public 成员函数 | |
RouteAosOption (IRouteAosOptionImpl control) | |
void | setFromX (String fromX) |
起始点X或者起始点X集合,集合使用|分隔,比如:x1|x2... 更多... | |
void | setFromY (String fromY) |
起始点Y或者起始点Y集合,集合使用|分隔,比如:y1|y2... 更多... | |
void | setStartPoiType (String startPoiType) |
起点点类型:0表示坐标为用户当前GPS位置,1表示为用户手动选择的点,2表示为POI坐标. 更多... | |
void | setToX (String toX) |
终止点X或者终止点X集合,集合使用|分隔,比如:x1|x2... 更多... | |
void | setToY (String toY) |
终止点Y或者终止点Y集合,集合使用|分隔,比如:y1|y2... 更多... | |
void | setEndPoiType (String endPoiType) |
终点点类型:0表示坐标为用户当前GPS位置,1表示为用户手动选择的点,2表示为POI坐标. 更多... | |
void | setStartPoiId (String startPoiId) |
起点POIID 更多... | |
void | setEndPoiId (String endPoiId) |
终点POIID 更多... | |
void | setViaPoints (String viaPoints) |
途径点集,形如 x1,y1|x2,y2|x3,y3|x3,y4, 更多... | |
void | setViaPointIds (String viaPointIds) |
途经点POIID串,需与viapoints的点数一致,格式:POIID1| POIID2|… 更多... | |
void | setViaPoiType (String viaPoiType) |
途经点点类型:0表示坐标为用户当前GPS位置,1表示为用户手动选择的点,2表示为POI显示坐标,3表示为poi到达点坐标. 更多... | |
void | setPolicy2 (String calcType) |
设置算路类型 更多... | |
void | setRequestTimeOut (long un32TimeOut) |
设置在线算路超时 更多... | |
void | setFlag (int flag) |
设置附加标志 更多... | |
void | setSdkVer (String sdkVer) |
设置算路引擎tbt sdk版本 更多... | |
void | setRouteVer (String routeVer) |
设置算路版本 更多... | |
void | setCarType (int carType) |
设置车辆类型 更多... | |
void | setVehicleCharge (float vehicleCharge) |
设置当前电量浮点型,重算必须有上层设置 更多... | |
void | setCarHeight (float carHeight) |
设置货车高度 更多... | |
void | setCarLoad (float carLoad) |
设置货车最大总重 更多... | |
void | setCarWeight (float carWeight) |
设置货车最大载重 更多... | |
void | setCarWidth (float carWidth) |
设置货车宽度 更多... | |
void | setCarLength (float carLength) |
设置货车长度 更多... | |
void | setCarSize (int carSize) |
设置货车大小 更多... | |
void | setRefresh (int refrest) |
可选,是否是刷新重新算路。默认值为0,当值为1时,表示接收的route请求时刷新重新算路请求。 更多... | |
void | setContentOption (int contentOption) |
附加提示功能的开关,高1字节整型数 更多... | |
void | setCarPlate (String carPlate) |
算路车牌 更多... | |
void | setUsePoiQuery (String usePoiQuery) |
是否使用POIID查询坐标和及到达坐标进行路线规划,取值:true/false 更多... | |
void | setReturnFormat (int returnFormat) |
返回格式 默认值为0(二进制格式),1为压缩后的Json格式; 更多... | |
void | setPlayStyle (int playStyle) |
客户端的播报设置 更多... | |
void | setSoundType (int soundType) |
语音类型 0:默认语音; 1:林志玲性感语音; 2:郭德纲; 3:周星星语音; 4:中国好声音; 5:百变欢笑语音; 6:超俪嗨语音; 7:央视春晚语音; 8:易烊千玺语音; 9:林志玲语音; 10:小甜心语音; 11:标准男中音; 12:豪爽东北话; 13:朴实河南话; 14:快乐湖南话; 15:麻辣四川话; 16:贴心台湾话; 17:动感广东话; 18:TFBOYS 王源; 19:TFBOYS 王俊凯; 更多... | |
void | setGpsHelter (String gpsHelter) |
gps遮挡 更多... | |
void | setThreeD (int threeD) |
是否请求三维数据 更多... | |
void | setStartLocatePrecision (float startLocatePrecision) |
起点定位精度 更多... | |
void | setStartLocateSpeed (int startLocateSpeed) |
起点定位速度 更多... | |
void | setStartAngleCredibility (float startAngleCredibility) |
车头角度可信度,取值范围:0~1, 默认传0.5,如无可用角度则不传 更多... | |
void | setStartAngleAngle (int startAngleAngle) |
车头角度,方位角表示法,正北方向为0,顺时针0~360度。如无可用角度则不传 更多... | |
void | setStartDirType (int startDirType) |
算路起点方向的类型:1代表GPS方向,2代表轨迹拟合方向,3代表罗盘方向 ,4代表道路方向 更多... | |
void | setCompassDir (float compassDir) |
当前罗盘方向 更多... | |
void | setGpsDir (float gpsDir) |
当前GPS方向 更多... | |
void | setMatchingDir (float matchingDir) |
当前巡航绑路方向 更多... | |
void | setSigType (int sigType) |
信号类型 更多... | |
void | setGpsCredibility (float gpsCredibility) |
GPS可信度 更多... | |
void | setRouteMode (int routeMode) |
请求类型 更多... | |
void | setAngleRadius (float angleRadius) |
定位准确半径 更多... | |
void | setInvoker (String invoker) |
AMap用户触发路线规划的方式 更多... | |
void | setStartTypeCode (String startTypeCode) |
起点poi-typecode 更多... | |
void | setViaTypeCode (String viaTypeCode) |
途经点poi-typecode 更多... | |
void | setEndTypeCode (String endTypeCode) |
终点poi-typecode 更多... | |
void | addExtraParam (@ExtraRequestParam.ExtraRequestParam1 int eParam, String paramValue) |
添加额外的参数,方便后续扩展,统一为字符串型 更多... | |
String | getExtraParamByFild (@ExtraRequestParam.ExtraRequestParam1 int eParam) |
返回对应字段的参数值,统一为字符串型 更多... | |
void | onDestroy () |
synchronized void | delete () |
静态 Public 成员函数 | |
static RouteAosOption | create () |
创建对象 更多... | |
static void | destroy (RouteAosOption routeOption) |
销毁Aos算路条件对象 更多... | |
Protected 成员函数 | |
RouteAosOption (long cPtr, boolean cMemoryOwn) | |
IRouteAosOptionImpl | getControl () |
void | unbind () |
void | clean () |
AOS算路选项
|
protected |
com.autonavi.gbl.route.model.RouteAosOption.RouteAosOption | ( | IRouteAosOptionImpl | control | ) |
void com.autonavi.gbl.route.model.RouteAosOption.addExtraParam | ( | @ExtraRequestParam.ExtraRequestParam1 int | eParam, |
String | paramValue | ||
) |
添加额外的参数,方便后续扩展,统一为字符串型
[in] | eParam | 参数对应的字段 |
[in] | paramValue | 参数值 |
|
protected |
|
static |
创建对象
synchronized void com.autonavi.gbl.route.model.RouteAosOption.delete | ( | ) |
|
static |
销毁Aos算路条件对象
[in] | routeOption | Aos算路条件对象 |
|
protected |
String com.autonavi.gbl.route.model.RouteAosOption.getExtraParamByFild | ( | @ExtraRequestParam.ExtraRequestParam1 int | eParam | ) |
返回对应字段的参数值,统一为字符串型
[in] | eParam | 参数对应的字段 |
void com.autonavi.gbl.route.model.RouteAosOption.onDestroy | ( | ) |
void com.autonavi.gbl.route.model.RouteAosOption.setAngleRadius | ( | float | angleRadius | ) |
定位准确半径
[in] | angleRadius | 取值: 单位:米 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarHeight | ( | float | carHeight | ) |
设置货车高度
[in] | carHeight | 单位米,浮点型,v_type为1时有效 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarLength | ( | float | carLength | ) |
设置货车长度
[in] | carLength | 单位米,浮点型,单位:吨,v_type为1时有效 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarLoad | ( | float | carLoad | ) |
设置货车最大总重
[in] | carLoad | 单位顿,浮点型,单位:吨,v_type为1时有效 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarPlate | ( | String | carPlate | ) |
算路车牌
[in] | carPlate | 车牌 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarSize | ( | int | carSize | ) |
设置货车大小
[in] | carSize | 1:微型货车 2:轻型/小型货车 3:中型货车 4:重型货车,v_type为1时有效 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarType | ( | int | carType | ) |
设置车辆类型
[in] | carType | 0客车,1货车, 2电动客车,3电动货车,4插电式混动客车,5插电式混动货车 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarWeight | ( | float | carWeight | ) |
设置货车最大载重
[in] | carWeight | 单位顿,浮点型,单位:吨,v_type为1时有效 |
void com.autonavi.gbl.route.model.RouteAosOption.setCarWidth | ( | float | carWidth | ) |
设置货车宽度
[in] | carWidth | 单位米,浮点型,单位:吨,v_type为1时有效 |
void com.autonavi.gbl.route.model.RouteAosOption.setCompassDir | ( | float | compassDir | ) |
当前罗盘方向
void com.autonavi.gbl.route.model.RouteAosOption.setContentOption | ( | int | contentOption | ) |
附加提示功能的开关,高1字节整型数
[in] | contentOption | 0x4000 是否包含多路线分歧点,合并点,以及最长独立段信息 |
void com.autonavi.gbl.route.model.RouteAosOption.setEndPoiId | ( | String | endPoiId | ) |
终点POIID
[in] | endPoiId | 终点ID字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setEndPoiType | ( | String | endPoiType | ) |
终点点类型:0表示坐标为用户当前GPS位置,1表示为用户手动选择的点,2表示为POI坐标.
与toX的数量一致,格式:type1| type2|…
[in] | endPoiType | 终点类型集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setEndTypeCode | ( | String | endTypeCode | ) |
终点poi-typecode
[in] | endTypeCode | 终点poi-typecode字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setFlag | ( | int | flag | ) |
设置附加标志
[in] | flag | 标志 |
void com.autonavi.gbl.route.model.RouteAosOption.setFromX | ( | String | fromX | ) |
起始点X或者起始点X集合,集合使用|分隔,比如:x1|x2...
[in] | fromX | 起点X集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setFromY | ( | String | fromY | ) |
起始点Y或者起始点Y集合,集合使用|分隔,比如:y1|y2...
[in] | fromY | 起点Y集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setGpsCredibility | ( | float | gpsCredibility | ) |
GPS可信度
[in] | gpsCredibility | 取值:0.0~1.0 |
void com.autonavi.gbl.route.model.RouteAosOption.setGpsDir | ( | float | gpsDir | ) |
当前GPS方向
[in] | gpsDir | 取值:0~360 |
void com.autonavi.gbl.route.model.RouteAosOption.setGpsHelter | ( | String | gpsHelter | ) |
gps遮挡
[in] | gpsHelter | 值域一般为(0,1)之间的小数,也可能为-1,表示不需参考这个参数 |
void com.autonavi.gbl.route.model.RouteAosOption.setInvoker | ( | String | invoker | ) |
AMap用户触发路线规划的方式
[in] | invoker | AMap用户触发路线规划的方式有以下几种: f. 在路线规划页面点击“搜索”。取值:"plan"。 g. 直接开始导航,触发路线规划。取值:"navi"。 h. 进入路线规划页面,会自动规划回家和去公司的路线,属于被动路线规划。取值:"home", "work"。 i. 路况提醒触发的路线规划。取值:"traffic"。 j. 通勤异常功能,取值"commute"。 |
void com.autonavi.gbl.route.model.RouteAosOption.setMatchingDir | ( | float | matchingDir | ) |
当前巡航绑路方向
[in] | matchingDir | 取值:0~360 |
void com.autonavi.gbl.route.model.RouteAosOption.setPlayStyle | ( | int | playStyle | ) |
客户端的播报设置
void com.autonavi.gbl.route.model.RouteAosOption.setPolicy2 | ( | String | calcType | ) |
设置算路类型
[in] | calcType | 算路类型,对应policy2 |
void com.autonavi.gbl.route.model.RouteAosOption.setRefresh | ( | int | refrest | ) |
可选,是否是刷新重新算路。默认值为0,当值为1时,表示接收的route请求时刷新重新算路请求。
[in] | refrest | 刷新间隔 |
void com.autonavi.gbl.route.model.RouteAosOption.setRequestTimeOut | ( | long | un32TimeOut | ) |
设置在线算路超时
[in] | un32TimeOut | 超时时间,单位毫秒,默认为8000毫秒即8秒 |
void com.autonavi.gbl.route.model.RouteAosOption.setReturnFormat | ( | int | returnFormat | ) |
返回格式 默认值为0(二进制格式),1为压缩后的Json格式;
[in] | returnFormat | 返回格式 |
void com.autonavi.gbl.route.model.RouteAosOption.setRouteMode | ( | int | routeMode | ) |
请求类型
[in] | routeMode | 取值: 1 直接算路 2 偏航 3 更改了算路策略 4 平行路切换 5 躲避拥堵 6 限行算路 7 道路关闭 8 未使用 9 改变了终点(终点停车场模式或沿途搜索设置途经点或终点) 11 时段限时禁行的重算 12 手动刷新 14 多路线的更新备选路请求 |
void com.autonavi.gbl.route.model.RouteAosOption.setRouteVer | ( | String | routeVer | ) |
设置算路版本
[in] | routeVer | 路径协议版本号,随tbt版本号变动 |
void com.autonavi.gbl.route.model.RouteAosOption.setSdkVer | ( | String | sdkVer | ) |
设置算路引擎tbt sdk版本
void com.autonavi.gbl.route.model.RouteAosOption.setSigType | ( | int | sigType | ) |
信号类型
[in] | sigType | 取值:1代表GPS,2代表网络点,3代表巡航绑路,4:导航路线匹配位置。默认0 |
void com.autonavi.gbl.route.model.RouteAosOption.setSoundType | ( | int | soundType | ) |
语音类型 0:默认语音;
1:林志玲性感语音;
2:郭德纲;
3:周星星语音;
4:中国好声音;
5:百变欢笑语音;
6:超俪嗨语音;
7:央视春晚语音;
8:易烊千玺语音;
9:林志玲语音;
10:小甜心语音;
11:标准男中音;
12:豪爽东北话;
13:朴实河南话;
14:快乐湖南话;
15:麻辣四川话;
16:贴心台湾话;
17:动感广东话;
18:TFBOYS 王源;
19:TFBOYS 王俊凯;
void com.autonavi.gbl.route.model.RouteAosOption.setStartAngleAngle | ( | int | startAngleAngle | ) |
车头角度,方位角表示法,正北方向为0,顺时针0~360度。如无可用角度则不传
[in] | startAngleAngle | 取值:0~360 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartAngleCredibility | ( | float | startAngleCredibility | ) |
车头角度可信度,取值范围:0~1, 默认传0.5,如无可用角度则不传
[in] | startAngleCredibility | 取值:0~1 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartDirType | ( | int | startDirType | ) |
算路起点方向的类型:1代表GPS方向,2代表轨迹拟合方向,3代表罗盘方向 ,4代表道路方向
[in] | startDirType | 取值:1~4 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartLocatePrecision | ( | float | startLocatePrecision | ) |
起点定位精度
[in] | startLocatePrecision | 起点定位精度 0~1 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartLocateSpeed | ( | int | startLocateSpeed | ) |
起点定位速度
[in] | startLocateSpeed | 起点定位速度 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartPoiId | ( | String | startPoiId | ) |
起点POIID
[in] | startPoiId | 起点ID字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartPoiType | ( | String | startPoiType | ) |
起点点类型:0表示坐标为用户当前GPS位置,1表示为用户手动选择的点,2表示为POI坐标.
与fromX的数量一致,格式:type1| type2|…
[in] | startPoiType | 起点类型集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setStartTypeCode | ( | String | startTypeCode | ) |
起点poi-typecode
[in] | startTypeCode | 起点poi-typecode字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setThreeD | ( | int | threeD | ) |
是否请求三维数据
[in] | threeD | 0:不请求, 1:请求 |
void com.autonavi.gbl.route.model.RouteAosOption.setToX | ( | String | toX | ) |
终止点X或者终止点X集合,集合使用|分隔,比如:x1|x2...
[in] | toX | 终止点X集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setToY | ( | String | toY | ) |
终止点Y或者终止点Y集合,集合使用|分隔,比如:y1|y2...
[in] | toY | 终止点Y集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setUsePoiQuery | ( | String | usePoiQuery | ) |
是否使用POIID查询坐标和及到达坐标进行路线规划,取值:true/false
[in] | usePoiQuery | true:是 false:否 |
void com.autonavi.gbl.route.model.RouteAosOption.setVehicleCharge | ( | float | vehicleCharge | ) |
设置当前电量浮点型,重算必须有上层设置
[in] | vehicleCharge | 当前电量(新能源电动车要使用) |
void com.autonavi.gbl.route.model.RouteAosOption.setViaPointIds | ( | String | viaPointIds | ) |
途经点POIID串,需与viapoints的点数一致,格式:POIID1| POIID2|…
[in] | viaPointIds | 途径点集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setViaPoints | ( | String | viaPoints | ) |
途径点集,形如 x1,y1|x2,y2|x3,y3|x3,y4,
[in] | viaPoints | 途径点集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setViaPoiType | ( | String | viaPoiType | ) |
途经点点类型:0表示坐标为用户当前GPS位置,1表示为用户手动选择的点,2表示为POI显示坐标,3表示为poi到达点坐标.
与viapoints的数量一致,格式:type1| type2|…
[in] | viaPoiType | 途径点类型集合字符串 |
void com.autonavi.gbl.route.model.RouteAosOption.setViaTypeCode | ( | String | viaTypeCode | ) |
途经点poi-typecode
[in] | viaTypeCode | 途经点poi-typecode字符串 |
|
protected |