搜索功能
关键字搜索(导航、巡航、算路结果页不支持)#
MapAuto 启动后,第三方通过该接口可传入关键字信息,调起 MapAuto 执行关键字搜索,并跳转到搜索结果展现界面。
参数说明
参数 | 说明 | 是否必填 | 格式/示例 |
---|---|---|---|
Action | 表示MapAuto接收/发送广播 | 是 | com.baidu.naviauto.action.recv |
CMD_TYPE | 协议的唯一ID | 是 | 10031 |
CALL_APP | 第三方应用名称 | 是 | String |
KEYWORD | 搜索关键字 | 是 | String |
CITY_ID | 城市id | 是 | String |
使用示例
Intent intent = new Intent();
intent.setAction("com.baidu.naviauto.action.recv");
intent.putExtra("CMD_TYPE", 10031);
intent.putExtra("KEYWORDS", "深圳大学");
intent.putExtra("CITY_ID", "340");
intent.putExtra("CALL_APP", "Other App");
sendBroadcast(intent);
周边搜索(导航、巡航、算路结果页不支持)#
MapAuto 启动后,系统/第三方可调用该接口传入关键字信息,调起 MapAuto 执行周边搜索并跳转到搜索结果展现界面。
参数说明
参数 | 说明 | 是否必填 | 格式/示例 |
---|---|---|---|
Action | 表示MapAuto接收/发送广播 | 是 | com.baidu.naviauto.action.recv |
CMD_TYPE | 协议的唯一ID | 是 | 10032 |
KEYWORDS | 关键字 | 是 | String 银行 |
CALL_APP | 调用app | 否 | Baidu app |
使用示例
Intent intent = new Intent();
intent.setAction("com.baidu.naviauto.action.recv");
intent.putExtra("CMD_TYPE", 10032);
intent.putExtra("KEYWORDS", "银行");
intent.putExtra("CALL_APP", "Other App");
sendBroadcast(intent);
关键字搜索(只返回结果)#
MapAuto 启动后,第三方通过该接口可传入关键字信息,只返回搜索结果,不跳转页面。
参数说明
参数 | 说明 | 是否必填 | 格式/示例 |
---|---|---|---|
Action | 表示 MapAuto 接收/发送广播 | 是 | com.baidu.naviauto.action.recv |
CMD_TYPE | 协议的唯一 ID | 是 | 10033 |
CALL_APP | 第三方应用名称 | 是 | String |
KEYWORD | 搜索关键字 | 是 | String |
CITY_ID | 城市id | 是 | String |
使用示例
Intent intent = new Intent();
intent.setAction("com.baidu.naviauto.action.recv");
intent.putExtra("CMD_TYPE", 10033);
intent.putExtra("KEYWORDS", "深圳大学");
intent.putExtra("CALL_APP", "Other App");
intent.putExtra("CITY_ID", "340");
sendBroadcast(intent);
返回结果参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示MapAuto接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一ID | 10034 |
EXTRA_NAME_FIRST | 搜索返回第一个结果的名称 | String |
EXTRA_NAME_SECOND | 搜索返回第二个结果的名称 | String |
EXTRA_NAME_THIRD | 搜索返回第三个结果的名称 | String |
EXTRA_NAME_FOURTH | 搜索返回第四个结果的名称 | String |
EXTRA_NAME_FIFTH | 搜索返回第五个结果的名称 | String |
EXTRA_NAME_SIXTH | 搜索返回第六个结果的名称 | String |
关键字搜索通知#
将 10034 收到的广播协议结果透出给系统或第三方。
参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示MapAuto接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一ID | 10034 |
DATA | 地址列表 | String |
DATA 例子:
[
{
"mAddress": "深圳市民治大道328号嘉熙业广场2楼",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2262275,
"mLongitudeE6": 11404028
},
"mId": 370027894,
"mName": "大润发(民治店)",
"mOriginUID": "78bd50f7de1ea94230870aa0",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "78bd50f7de1ea94230870aa0",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2262275,
"mLongitudeE6": 11404028
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "和平东路与东环二路交汇处",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2265804,
"mLongitudeE6": 11403154
},
"mId": 1110532002,
"mName": "大润发(龙华店)",
"mOriginUID": "1ffe8ac627e6f9c79e82ea5d",
"mPhone": "(0755)28150188",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "1ffe8ac627e6f9c79e82ea5d",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2265804,
"mLongitudeE6": 11403154
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "广东省深圳市龙华区大润发楼上",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2265807,
"mLongitudeE6": 11403152
},
"mId": 150841901,
"mName": "龙华大润发自助火锅",
"mOriginUID": "6c30e7b51e097d8811882420",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "6c30e7b51e097d8811882420",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2265807,
"mLongitudeE6": 11403152
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "龙华民治第一工业区万侨商业楼三楼(即大润发对面)",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2262209,
"mLongitudeE6": 11403859
},
"mId": 1424113098,
"mName": "深圳佳豪商务酒店民治大润发店",
"mOriginUID": "de12b730b12e49f3e60738ab",
"mPhone": "(0755)27356160,(0755)83722766,(0",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "de12b730b12e49f3e60738ab",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2262209,
"mLongitudeE6": 11403859
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "广东省深圳市龙华区和平路南(近美丽家园北区)",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2265806,
"mLongitudeE6": 11403152
},
"mId": 841447215,
"mName": "大润发龙华店停车场(和平路)",
"mOriginUID": "f2684e1fab06efb28adb7351",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "f2684e1fab06efb28adb7351",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2265806,
"mLongitudeE6": 11403152
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "广东省深圳市龙华区和平路186号",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2265698,
"mLongitudeE6": 11402919
},
"mId": 915230651,
"mName": "深圳7天龙华和平路大润发店",
"mOriginUID": "b26ec774af2f94f723f0171f",
"mPhone": "(0755)28186999",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "b26ec774af2f94f723f0171f",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2265698,
"mLongitudeE6": 11402919
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "深圳市龙华区民治大道大润发5楼",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2262263,
"mLongitudeE6": 11403940
},
"mId": 745640100,
"mName": "辣宴(民治大润发店)",
"mOriginUID": "affd0fd2d1b4dcb8a5da394b",
"mPhone": "(0755)26702278",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "affd0fd2d1b4dcb8a5da394b",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2262263,
"mLongitudeE6": 11403940
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "广东省深圳市龙华区民治街道民治大润发旁边塘水围一区34栋一楼102铺",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2262230,
"mLongitudeE6": 11403784
},
"mId": 574677504,
"mName": "深圳龙华民治塘水围一区中通",
"mOriginUID": "993d9c8c72443ac4734b87e4",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "993d9c8c72443ac4734b87e4",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2262230,
"mLongitudeE6": 11403784
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "民治大道潜龙鑫茂花园A区4栋102号",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2261078,
"mLongitudeE6": 11404421
},
"mId": 121608191,
"mName": "粒上皇(民治大润发店)",
"mOriginUID": "6b6aaabf5cc1a68996ca07f6",
"mPhone": "15626531898",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "6b6aaabf5cc1a68996ca07f6",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2261078,
"mLongitudeE6": 11404421
},
"mWanda": 0,
"mWeight": 0
}, {
"mAddress": "深圳市龙华区民治大道280",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2262159,
"mLongitudeE6": 11403976
},
"mId": 999756504,
"mName": "木屋烧烤(民治大润发店)",
"mOriginUID": "1552fa0d993ca787f33cba36",
"mPhone": "(0755)86613599",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "1552fa0d993ca787f33cba36",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2262159,
"mLongitudeE6": 11403976
},
"mWanda": 0,
"mWeight": 0
}
]
周边搜索(只返回结果)#
MapAuto 启动后,第三方通过该接口可传入关键字信息,只返回搜索结果,不跳转页面。
参数说明
参数 | 说明 | 是否必填 | 格式/示例 |
---|---|---|---|
Action | 表示 MapAuto 接收/发送广播 | 是 | com.baidu.naviauto.action.recv |
CMD_TYPE | 协议的唯一 ID | 是 | 10035 |
CALL_APP | 第三方应用名称 | 是 | String |
KEYWORD | 搜索关键字 | 是 | String |
使用示例
Intent intent = new Intent();
intent.setAction("com.baidu.naviauto.action.recv");
intent.putExtra("CMD_TYPE", 10035);
intent.putExtra("KEYWORDS", "银行");
intent.putExtra("CALL_APP", "Other App");
sendBroadcast(intent);
返回结果参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示 MapAuto 接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一 ID | 10036 |
DATA | 地址列表 | String |
DATA 例子:
[
{
"mAddress": "广东省深圳市南山区荣超高新区联合总部大厦",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2252547,
"mLongitudeE6": 11394312
},
"mId": 407387042,
"mName": "浙商银行",
"mOriginUID": "5cf2636ab929dbc7c056acd0",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "5cf2636ab929dbc7c056acd0",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2252547,
"mLongitudeE6": 11394312
},
"mWanda": 0,
"mWeight": 0
}
]
周边搜索通知#
将 10035 收到的广播协议结果透出给系统或第三方。
参数说明
参数 | 描述 | 格式/示例 |
---|---|---|
Action | 表示MapAuto接收/发送广播 | com.baidu.naviauto.action.send |
CMD_TYPE | 协议的唯一ID | 10036 |
DATA | 地址列表 | String |
DATA 例子:
[
{
"mAddress": "广东省深圳市南山区荣超高新区联合总部大厦",
"mChildCnt": 0,
"mDistrictId": 340,
"mFCType": 0,
"mGuidePoint": {
"mLatitudeE6": 2252547,
"mLongitudeE6": 11394312
},
"mId": 407387042,
"mName": "浙商银行",
"mOriginUID": "5cf2636ab929dbc7c056acd0",
"mPoiCount": 0,
"mShowCatalog": 0,
"mStreetId": "5cf2636ab929dbc7c056acd0",
"mType": 0,
"mViewPoint": {
"mLatitudeE6": 2252547,
"mLongitudeE6": 11394312
},
"mWanda": 0,
"mWeight": 0
}
]