驾车线路导航api
博客专区 > juziss 的博客 > 博客详情
驾车线路导航api
juziss 发表于1年前
驾车线路导航api
  • 发表于 1年前
  • 阅读 7
  • 收藏 0
  • 点赞 0
  • 评论 0

标题:腾讯云 新注册用户域名抢购1元起>>>   

驾车线路导航api 

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

详情:http://www.haoservice.com/docs/24

示例:

{
    "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;"
                }]
            }]
        }
    }
}
共有 人打赏支持
粉丝 0
博文 47
码字总数 12325
×
juziss
如果觉得我的文章对您有用,请随意打赏。您的支持将鼓励我继续创作!
* 金额(元)
¥1 ¥5 ¥10 ¥20 其他金额
打赏人
留言
* 支付类型
微信扫码支付
打赏金额:
已支付成功
打赏金额: