当前所在位置:首页>数据接口>导航服务>驾车线路导航api

驾车线路导航api 

导航api是提供驾车导航,语音播报,地图搜索,实时路况功能

数据ID:24

接口状态:正常

连接应用数:47817

接入服务商:haoservice

/100次 购买套餐

  • API
  • 错误码参照
  • 资费套餐
  • 版本变更
  • 代码示例
  • 其他相关
接口地址: http://apis.haoservice.com/drivingroute/query
支持格式: JSON/XML
请求方式: GET/POST
明文方式请求参数:
名称 类型 必填 说明
key string API KEY
origin String 起始经纬度lng+","+lat(gcj02坐标经纬度)
destination String 目的地经纬度lng+","+lat(gcj02坐标经纬度)
密文方式请求参数:
名称 类型 必填 说明
IsEncrypt bool 是否密文传输方式
key string API KEY
params string 3des ECB模式 PKCS7填充模式 加密 3des("origin=116.379018,39.865026&destination=116.321139,39.896028","openId前24位")
调用样例及调试工具:
返回字段:
明文JSON返回示例:
{"error_code":0, "reason":"Success", "result":{"route": {"origin":"116.379018,39.865026","destination":"116.321139,39.896028", "paths":[{"steps":[{"instruction":"向东南行驶116米向左前方行驶", "polyline":"116.37986,39.865673;.....116.380363,39.865173;116.3806,39.864799"},/*路径*/ {"instruction":"向东行驶74米向右前方行驶进入匝道",/*导航描述*/ "polyline":"116.3806,39.864796;......116.381218,39.864899;116.381348,39.864956"}, {"instruction":"沿北京南站路行驶565米右转", "polyline":"116.381348,39.864956;....116.384529,39.865883;"}, {"instruction":"沿马家堡东路向南行驶176米直行进入左侧道路", "polyline":"116.38752,39.86512;.....116.386925,39.863609"}, {"instruction":"沿马家堡东路向南行驶702米右转", "polyline":"116.386925,39.863605;116.386848,39.863197;"}, {"instruction":"沿南三环西路辅路向西行驶424米向左前方行驶进入主路", "polyline":"116.386734,39.857262;.......116.383781,39.857288;"}, {"instruction":"向东南行驶294米到达目的地", "polyline":"116.319847,39.896862;........116.32,39.896358;116.320068,39.896332;"} ]} ]} } }
密文JSON返回示例:
hCe2pmNRFnwP3gbrGm9vnobmGI+VZPwJAFJ6xcEkeJGyOQKBipdMSDN1yb3lDI48WoqV7IJHb3tjJABrAc00igyE1dYBYQophG/6anzWjA857/YaMzKj5kfiVxyBavy4a4OudBnMncw=

推荐接口/API

联系客服

010-58436659