|
AutoSDK
500
|
定位模块返回的定位信息 更多...
Public 成员函数 | |
| LocInfo () | |
| LocInfo (int isUseLiteObj, int isSimulateLiteObj, int sourTypeLiteObj, float altLiteObj, float speedLiteObj, float posAccLiteObj, float showPosAccLiteObj, float altAccLiteObj, Coord3DDouble gpsPosLiteObj, float gpsCourseLiteObj, int naviRouteIdLiteObj, int roadDirLiteObj, java.math.BigInteger roadIdLiteObj, java.math.BigInteger nearRoadIdLiteObj, int segIdxLiteObj, short bindFlagLiteObj, float distFromHeadLineLiteObj, int isHLocDataLiteObj, java.math.BigInteger linkIdLiteObj, boolean isLinkOnlineLiteObj, int linkOnlineVersionLiteObj, short[] poiIdLiteObj, short[] floorLiteObj, Coord3DDouble stDoorInPosLiteObj, Coord3DDouble stMatchRoadPosLiteObj, @LocStartDirType.LocStartDirType1 int startDirTypeLiteObj, float matchRoadCourseLiteObj, String requestRouteInfoLiteObj, float compassDirLiteObj, float gpsDirLiteObj, float errorDistLiteObj, @LocStartPosType.LocStartPosType1 int startPosTypeLiteObj, float courseAccLiteObj, float gpsCoureAccLiteObj, float fittingCourseLiteObj, float fittingCourseAccLiteObj, GPSDatetime gpsDatetimeLiteObj, java.math.BigInteger tickTimeLiteObj, java.math.BigInteger inputTickTimeLiteObj, long overheadLiteObj, ArrayList< LocMatchInfo > matchInfoLiteObj, long matchInfoCntLiteObj, float hdopLiteObj, ArrayList< LocRoadMatchInfo > roadMatchInfoLiteObj, long roadMatchInfoCntLiteObj, boolean locInfoChangeLiteObj, boolean bSnrVoiceBroadcastStateLiteObj, boolean isAoiLiteObj, boolean speedometerIsValidLiteObj, float speedometerLiteObj) | |
Public 属性 | |
| int | isUse |
| 此帧位置信息是否有效(0:无效,1:有效),无效时剩余所有字段均不可使用 更多... | |
| int | isSimulate |
| 此帧位置信息是否是模拟导航输出的位置信息(1:模拟,0:非模拟) 更多... | |
| int | sourType |
| 定位方式。0:GPS定位,1:网络定位 更多... | |
| float | alt |
| 海拔,单位:米 更多... | |
| float | speed |
| 速度,单位:公里/小时 更多... | |
| float | posAcc |
| 位置精度,单位:米。 纯GNSS模式时透传 tagGDLOCGNSS::fAccuracy 前端融合时透传 tagGDLOCDRPOS::fPosAcc 后端融合引擎内部自行计算此值 更多... | |
| float | showPosAcc |
| 位置精度,仅限于主图界面上的精度圈显示 更多... | |
| float | altAcc |
| 海拔精度,单位:米。当前内部无法输出此值,数值为0.0f 更多... | |
| Coord3DDouble | gpsPos |
| GPS二维位置坐标(有插帧)。 更多... | |
| float | gpsCourse |
| Gps航向(有插帧)。 更多... | |
| int | naviRouteId |
| 【仅导航输出】引导路径唯一ID,目前已经废弃 更多... | |
| int | roadDir |
| 【仅有离线数据且绑路时输出】车辆沿道路的哪个方向行驶。0:正向(从头到尾),1:反向(从尾到头)。头对应道路坐标序列的0,尾反之 更多... | |
| java.math.BigInteger | roadId |
| 【仅有离线数据且绑路时输出】当前匹配点所在道路的ID 更多... | |
| java.math.BigInteger | nearRoadId |
| 【仅有离线数据且绑路时输出】附近道路ID。附近道路指的是投影距离最小的道路 更多... | |
| int | segIdx |
| 【仅有离线数据且绑路时输出】当前所在段在其所在道路的第几个线段,两个坐标点为一个段 更多... | |
| short | bindFlag |
| 【仅有离线数据且绑路时输出】道路绑定标示, 0: 可入可出 1: 可入不可出 2: 可出不可入 3: 不可入不可出 更多... | |
| float | distFromHeadLine |
| 【仅有离线数据且绑路时输出】当前的位置距离当前道路线起点(F节点与实际行驶方向无关)的距离,单位:米 更多... | |
| int | isHLocData |
| 【仅有离线数据时输出】车标附近300或400米内是否有本地数据。0:无; 1:有 更多... | |
| java.math.BigInteger | linkId |
| 巡航匹配道路ID,0表示无效 更多... | |
| boolean | isLinkOnline |
| 巡航匹配道路ID数据是否在线:true在线,false离线 更多... | |
| int | linkOnlineVersion |
| 巡航匹配道路ID使用的在线版本:islinkOnline==true时有效 更多... | |
| short[] | poiId |
| 透传的室内定位信息:类型 更多... | |
| short[] | floor |
| 透传的室内定位信息:楼层 更多... | |
| Coord3DDouble | stDoorInPos |
| 透传的室内定位信息:位置坐标,GCJ02坐标系,单位:度 更多... | |
| Coord3DDouble | stMatchRoadPos |
| 算路起点位置,GCJ02坐标系,单位:度 更多... | |
| .LocStartDirType1 int | startDirType |
| 算路起点方向的类型 更多... | |
| float | matchRoadCourse |
| 算路起点方向,单位:度,北零顺时针。范围:[0-360)。0 => 北, 90 => 东, 180 => 南, 270 => 西 更多... | |
| String | requestRouteInfo |
| 算路请求信息。jeson格式: {"StartAngle":{"Angle": {"sst": "-1"}}} 更多... | |
| float | compassDir |
| 当前罗盘方向 更多... | |
| float | gpsDir |
| 当前GPS方向 更多... | |
| float | errorDist |
| GPS位置误差距离,单位:米。只有emMatchPosType类型为1(GPS位置)时有意义 更多... | |
| .LocStartPosType1 int | startPosType |
| 算路起点位置类型,1代表GPS定位点,2代表网络点,3代表巡航绑路匹配点,4代表导航匹配点 更多... | |
| float | courseAcc |
| 描述航向可信度,范围:[0.0-1.0],数值越大越可信 1:信号数量不足(小于4个)时输出0.1 2: 可计算时最小值为0.2 3: 0.8以上表示可用 更多... | |
| float | gpsCoureAcc |
| GPS方向可信度(综合最近的多个信号方向及位置计算而来),范围:[0.0-1.0],数值越大越可信 更多... | |
| float | fittingCourse |
| GPS位置拟合方向,单位:度,北零顺时针。-1.0表示无效 更多... | |
| float | fittingCourseAcc |
| GPS位置拟合方向可信度,范围:[0.0-1.0],数值越大越可信 更多... | |
| GPSDatetime | gpsDatetime |
| GPS日期。GPS中断时,此值也不更新 更多... | |
| java.math.BigInteger | tickTime |
| 定位结果产生时刻的时间戳(系统滴答数(相对系统启动时间),某些系统取不到系统滴答数时,取1970年01月01日00时00分00秒以来的时间戳),单位:毫秒 更多... | |
| java.math.BigInteger | inputTickTime |
| 外部输入的定位信号的时间戳。 更多... | |
| long | overhead |
| 用于标识当前车位是在高架上还是高架下,0默认值,1表示高架上,2标示高架下 更多... | |
| ArrayList< LocMatchInfo > | matchInfo |
| long | matchInfoCnt |
| 当前路径个数 更多... | |
| float | hdop |
| HDOP。 更多... | |
| ArrayList< LocRoadMatchInfo > | roadMatchInfo |
| 多位置点匹配信息,最多4个,匹配位置可能性由大到小。EHP需求 更多... | |
| long | roadMatchInfoCnt |
| roadMatchInfo的有效个数 更多... | |
| boolean | locInfoChange |
| 标识LocInfo是否有更新(pos回调为变频,不是每次回调LocInfo都有更新) 更多... | |
| boolean | bSnrVoiceBroadcastState |
| SNR模型高架识别语音交互状态,false-不虚交互,true-需要交互,与 muLinkHwflag联合使用,muLinkHwflag为0时,不切换,此数值为true&&muLinkHwflag为1时,提示用户由高架上切换至高架下,此数值为true&&muLinkHwflag为2时提示用户从高架下切换至高架上, 更多... | |
| boolean | isAoi |
| 是否在常用小区内 更多... | |
| boolean | speedometerIsValid |
| 标识speedometer是否可用,true:可用,false:不可用 更多... | |
| float | speedometer |
| 仪表盘车速 更多... | |
定位模块返回的定位信息
| com.autonavi.gbl.pos.model.LocInfo.LocInfo | ( | ) |
| com.autonavi.gbl.pos.model.LocInfo.LocInfo | ( | int | isUseLiteObj, |
| int | isSimulateLiteObj, | ||
| int | sourTypeLiteObj, | ||
| float | altLiteObj, | ||
| float | speedLiteObj, | ||
| float | posAccLiteObj, | ||
| float | showPosAccLiteObj, | ||
| float | altAccLiteObj, | ||
| Coord3DDouble | gpsPosLiteObj, | ||
| float | gpsCourseLiteObj, | ||
| int | naviRouteIdLiteObj, | ||
| int | roadDirLiteObj, | ||
| java.math.BigInteger | roadIdLiteObj, | ||
| java.math.BigInteger | nearRoadIdLiteObj, | ||
| int | segIdxLiteObj, | ||
| short | bindFlagLiteObj, | ||
| float | distFromHeadLineLiteObj, | ||
| int | isHLocDataLiteObj, | ||
| java.math.BigInteger | linkIdLiteObj, | ||
| boolean | isLinkOnlineLiteObj, | ||
| int | linkOnlineVersionLiteObj, | ||
| short[] | poiIdLiteObj, | ||
| short[] | floorLiteObj, | ||
| Coord3DDouble | stDoorInPosLiteObj, | ||
| Coord3DDouble | stMatchRoadPosLiteObj, | ||
| @LocStartDirType.LocStartDirType1 int | startDirTypeLiteObj, | ||
| float | matchRoadCourseLiteObj, | ||
| String | requestRouteInfoLiteObj, | ||
| float | compassDirLiteObj, | ||
| float | gpsDirLiteObj, | ||
| float | errorDistLiteObj, | ||
| @LocStartPosType.LocStartPosType1 int | startPosTypeLiteObj, | ||
| float | courseAccLiteObj, | ||
| float | gpsCoureAccLiteObj, | ||
| float | fittingCourseLiteObj, | ||
| float | fittingCourseAccLiteObj, | ||
| GPSDatetime | gpsDatetimeLiteObj, | ||
| java.math.BigInteger | tickTimeLiteObj, | ||
| java.math.BigInteger | inputTickTimeLiteObj, | ||
| long | overheadLiteObj, | ||
| ArrayList< LocMatchInfo > | matchInfoLiteObj, | ||
| long | matchInfoCntLiteObj, | ||
| float | hdopLiteObj, | ||
| ArrayList< LocRoadMatchInfo > | roadMatchInfoLiteObj, | ||
| long | roadMatchInfoCntLiteObj, | ||
| boolean | locInfoChangeLiteObj, | ||
| boolean | bSnrVoiceBroadcastStateLiteObj, | ||
| boolean | isAoiLiteObj, | ||
| boolean | speedometerIsValidLiteObj, | ||
| float | speedometerLiteObj | ||
| ) |
| float com.autonavi.gbl.pos.model.LocInfo.alt |
海拔,单位:米
| float com.autonavi.gbl.pos.model.LocInfo.altAcc |
海拔精度,单位:米。当前内部无法输出此值,数值为0.0f
| short com.autonavi.gbl.pos.model.LocInfo.bindFlag |
【仅有离线数据且绑路时输出】道路绑定标示, 0: 可入可出 1: 可入不可出 2: 可出不可入 3: 不可入不可出
| boolean com.autonavi.gbl.pos.model.LocInfo.bSnrVoiceBroadcastState |
SNR模型高架识别语音交互状态,false-不虚交互,true-需要交互,与 muLinkHwflag联合使用,muLinkHwflag为0时,不切换,此数值为true&&muLinkHwflag为1时,提示用户由高架上切换至高架下,此数值为true&&muLinkHwflag为2时提示用户从高架下切换至高架上,
| float com.autonavi.gbl.pos.model.LocInfo.compassDir |
当前罗盘方向
| float com.autonavi.gbl.pos.model.LocInfo.courseAcc |
描述航向可信度,范围:[0.0-1.0],数值越大越可信
1:信号数量不足(小于4个)时输出0.1
2: 可计算时最小值为0.2
3: 0.8以上表示可用
| float com.autonavi.gbl.pos.model.LocInfo.distFromHeadLine |
【仅有离线数据且绑路时输出】当前的位置距离当前道路线起点(F节点与实际行驶方向无关)的距离,单位:米
| float com.autonavi.gbl.pos.model.LocInfo.errorDist |
GPS位置误差距离,单位:米。只有emMatchPosType类型为1(GPS位置)时有意义
| float com.autonavi.gbl.pos.model.LocInfo.fittingCourse |
GPS位置拟合方向,单位:度,北零顺时针。-1.0表示无效
| float com.autonavi.gbl.pos.model.LocInfo.fittingCourseAcc |
GPS位置拟合方向可信度,范围:[0.0-1.0],数值越大越可信
| short [] com.autonavi.gbl.pos.model.LocInfo.floor |
透传的室内定位信息:楼层
| float com.autonavi.gbl.pos.model.LocInfo.gpsCoureAcc |
GPS方向可信度(综合最近的多个信号方向及位置计算而来),范围:[0.0-1.0],数值越大越可信
| float com.autonavi.gbl.pos.model.LocInfo.gpsCourse |
Gps航向(有插帧)。
| GPSDatetime com.autonavi.gbl.pos.model.LocInfo.gpsDatetime |
GPS日期。GPS中断时,此值也不更新
| float com.autonavi.gbl.pos.model.LocInfo.gpsDir |
当前GPS方向
| Coord3DDouble com.autonavi.gbl.pos.model.LocInfo.gpsPos |
GPS二维位置坐标(有插帧)。
| float com.autonavi.gbl.pos.model.LocInfo.hdop |
HDOP。
| java.math.BigInteger com.autonavi.gbl.pos.model.LocInfo.inputTickTime |
外部输入的定位信号的时间戳。
| boolean com.autonavi.gbl.pos.model.LocInfo.isAoi |
是否在常用小区内
| int com.autonavi.gbl.pos.model.LocInfo.isHLocData |
【仅有离线数据时输出】车标附近300或400米内是否有本地数据。0:无; 1:有
| boolean com.autonavi.gbl.pos.model.LocInfo.isLinkOnline |
巡航匹配道路ID数据是否在线:true在线,false离线
| int com.autonavi.gbl.pos.model.LocInfo.isSimulate |
此帧位置信息是否是模拟导航输出的位置信息(1:模拟,0:非模拟)
| int com.autonavi.gbl.pos.model.LocInfo.isUse |
此帧位置信息是否有效(0:无效,1:有效),无效时剩余所有字段均不可使用
| java.math.BigInteger com.autonavi.gbl.pos.model.LocInfo.linkId |
巡航匹配道路ID,0表示无效
| int com.autonavi.gbl.pos.model.LocInfo.linkOnlineVersion |
巡航匹配道路ID使用的在线版本:islinkOnline==true时有效
| boolean com.autonavi.gbl.pos.model.LocInfo.locInfoChange |
标识LocInfo是否有更新(pos回调为变频,不是每次回调LocInfo都有更新)
| ArrayList<LocMatchInfo> com.autonavi.gbl.pos.model.LocInfo.matchInfo |
| long com.autonavi.gbl.pos.model.LocInfo.matchInfoCnt |
当前路径个数
| float com.autonavi.gbl.pos.model.LocInfo.matchRoadCourse |
算路起点方向,单位:度,北零顺时针。范围:[0-360)。0 => 北, 90 => 东, 180 => 南, 270 => 西
| int com.autonavi.gbl.pos.model.LocInfo.naviRouteId |
【仅导航输出】引导路径唯一ID,目前已经废弃
| java.math.BigInteger com.autonavi.gbl.pos.model.LocInfo.nearRoadId |
【仅有离线数据且绑路时输出】附近道路ID。附近道路指的是投影距离最小的道路
| long com.autonavi.gbl.pos.model.LocInfo.overhead |
用于标识当前车位是在高架上还是高架下,0默认值,1表示高架上,2标示高架下
| short [] com.autonavi.gbl.pos.model.LocInfo.poiId |
透传的室内定位信息:类型
| float com.autonavi.gbl.pos.model.LocInfo.posAcc |
位置精度,单位:米。
纯GNSS模式时透传 tagGDLOCGNSS::fAccuracy
前端融合时透传 tagGDLOCDRPOS::fPosAcc
后端融合引擎内部自行计算此值
| String com.autonavi.gbl.pos.model.LocInfo.requestRouteInfo |
算路请求信息。jeson格式: {"StartAngle":{"Angle": {"sst": "-1"}}}
| int com.autonavi.gbl.pos.model.LocInfo.roadDir |
【仅有离线数据且绑路时输出】车辆沿道路的哪个方向行驶。0:正向(从头到尾),1:反向(从尾到头)。头对应道路坐标序列的0,尾反之
| java.math.BigInteger com.autonavi.gbl.pos.model.LocInfo.roadId |
【仅有离线数据且绑路时输出】当前匹配点所在道路的ID
| ArrayList<LocRoadMatchInfo> com.autonavi.gbl.pos.model.LocInfo.roadMatchInfo |
多位置点匹配信息,最多4个,匹配位置可能性由大到小。EHP需求
| long com.autonavi.gbl.pos.model.LocInfo.roadMatchInfoCnt |
roadMatchInfo的有效个数
| int com.autonavi.gbl.pos.model.LocInfo.segIdx |
【仅有离线数据且绑路时输出】当前所在段在其所在道路的第几个线段,两个坐标点为一个段
| float com.autonavi.gbl.pos.model.LocInfo.showPosAcc |
位置精度,仅限于主图界面上的精度圈显示
| int com.autonavi.gbl.pos.model.LocInfo.sourType |
定位方式。0:GPS定位,1:网络定位
| float com.autonavi.gbl.pos.model.LocInfo.speed |
速度,单位:公里/小时
| float com.autonavi.gbl.pos.model.LocInfo.speedometer |
仪表盘车速
| boolean com.autonavi.gbl.pos.model.LocInfo.speedometerIsValid |
标识speedometer是否可用,true:可用,false:不可用
| .LocStartDirType1 int com.autonavi.gbl.pos.model.LocInfo.startDirType |
算路起点方向的类型
| .LocStartPosType1 int com.autonavi.gbl.pos.model.LocInfo.startPosType |
算路起点位置类型,1代表GPS定位点,2代表网络点,3代表巡航绑路匹配点,4代表导航匹配点
| Coord3DDouble com.autonavi.gbl.pos.model.LocInfo.stDoorInPos |
透传的室内定位信息:位置坐标,GCJ02坐标系,单位:度
| Coord3DDouble com.autonavi.gbl.pos.model.LocInfo.stMatchRoadPos |
算路起点位置,GCJ02坐标系,单位:度
| java.math.BigInteger com.autonavi.gbl.pos.model.LocInfo.tickTime |
定位结果产生时刻的时间戳(系统滴答数(相对系统启动时间),某些系统取不到系统滴答数时,取1970年01月01日00时00分00秒以来的时间戳),单位:毫秒