欢迎来到淘码网(TMA.CN)

路径规划

价格: ¥ 99 积分可抵¥ 1

最后更新: 2019-12-15 20:56:34

演示地址:

安装费: 免费

分类
类 型
品 牌
语 言
数据库
是否加密
是否授权
大小
10 MB
发货方式
自动发货
下载方式
远程下载

API接口

距离测量API
驾车路径规划
步行路径规划
公交路径规划

距离测量API

调用地址:http://direction.market.alicloudapi.com/v3/distance

请求方式:GET

返回类型:JSON

API 调用:API 简单身份认证调用方法(APPCODE)展开API 签名认证调用方法(AppKey & AppSecret)

调试工具:去调试

请求参数(Headers)

无参数

请求参数(Query)
名称类型是否必须描述
callbackSTRING可选回调函数 callback值是用户定义的函数名称,此参数只在output=JSON时有效
destinationSTRING必选目的地 规则: lon,lat(经度,纬度), “,”分割 如117.500244, 40.417801 经纬度小数点不超过6位
originsSTRING必选出发点 支持100个坐标对,坐标对见用“| ”分隔;经度和纬度用","分隔
outputSTRING可选返回数据格式类型 可选值:JSON,XML
typeSTRING可选路径计算的方式和方法 0:直线距离 1:驾车导航距离(仅支持国内坐标)。 必须指出,当为1时会考虑路况,故在不同时间请求返回结果可能不同。 此策略和driving接口的 strategy=4策略一致 2:公交规划距离(仅支持同城坐标) 3:步行规划距离(仅支持5km之间的距离)
请求参数(Body)

无参数

请求示例
curl
Java
C#
PHP
Python
ObjectC
curl -i --get --include 'http://direction.market.alicloudapi.com/v3/distance?callback=callback&destination=destination&origins=origins&output=JSON&type=type'  -H 'Authorization:APPCODE 你自己的AppCode'
    正常返回示例
    {
        "status": "1",
        "info": "OK",
        "infocode": "10000",
        "count": "1",
        "route": {
            "origin": "116.481028,39.989643",
            "destination": "116.434446,39.90816",
            "paths": [
                "0": {
                    "distance": "27876",
                    "duration": "4197",
                    "strategy": "速度最快",
                    "tolls": "0",
                    "toll_distance": "0",
                    "steps": [
                        "0": {
                            "instruction": "向西南行驶44米右转进入主路",
                            "orientation": "西南",
                            "distance": "44",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "5",
                            "polyline": "116.481216,39.989532;116.48101,39.989311;116.480957,39.989262;116.480904,39.989216",
                            "action": "右转",
                            "assistant_action": "进入主路"
                        },
                        "1": {
                            "instruction": "沿阜荣街向西北行驶112米右转",
                            "orientation": "西北",
                            "road": "阜荣街",
                            "distance": "112",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "36",
                            "polyline": "116.480835,39.989155;116.479843,39.989815",
                            "action": "右转",
                            "assistant_action": []
                        },
                        "2": {
                            "instruction": "沿阜通东大街向东北行驶381米右转",
                            "orientation": "东北",
                            "road": "阜通东大街",
                            "distance": "381",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "83",
                            "polyline": "116.479843,39.989815;116.481041,39.990906;116.48111,39.990978;116.482445,39.992188;116.482712,39.992447",
                            "action": "右转",
                            "assistant_action": []
                        },
                        "3": {
                            "instruction": "沿望京街向东南行驶574米左转",
                            "orientation": "东南",
                            "road": "望京街",
                            "distance": "574",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "521",
                            "polyline": "116.482712,39.992447;116.483139,39.992184;116.484474,39.991283;116.485725,39.990463;116.486137,39.9902;116.486389,39.99004;116.486511,39.989948;116.487846,39.989071",
                            "action": "左转",
                            "assistant_action": []
                        },
                        "4": {
                            "instruction": "沿京密路向东北行驶358米向右前方行驶进入匝道",
                            "orientation": "东北",
                            "road": "京密路",
                            "distance": "358",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "37",
                            "polyline": "116.488068,39.989056;116.488663,39.989571;116.489304,39.99015;116.489632,39.990448;116.49041,39.991173;116.490784,39.991512",
                            "action": "向右前方行驶",
                            "assistant_action": "进入匝道"
                        },
                        "5": {
                            "instruction": "沿S12机场高速入口途径S12机场高速行驶5.6千米靠左",
                            "orientation": [],
                            "road": "S12机场高速入口",
                            "distance": "5584",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "282",
                            "polyline": "116.490784,39.991512;116.491035,39.991688;116.491165,39.991741;116.49128,39.991749;116.491348,39.991737;116.491409,39.991692;116.49144,39.991657;116.491455,39.991627;116.491508,39.991524;116.491531,39.991367;116.490555,39.990479;116.487411,39.987625;116.485817,39.98621;116.485535,39.98595;116.483871,39.984451;116.482689,39.983349;116.479523,39.980499;116.478004,39.979145;116.475731,39.977074;116.474899,39.97633;116.474632,39.976097;116.474022,39.975552;116.472847,39.974483;116.470154,39.972061;116.468849,39.970871;116.468102,39.970196;116.465706,39.968056;116.46212,39.964863;116.460556,39.963432;116.459602,39.962582;116.459061,39.962109;116.458366,39.961472;116.456993,39.960239;116.456314,39.959621;116.454788,39.958237;116.453979,39.9575;116.453506,39.957085;116.451775,39.955513;116.451233,39.955021;116.450882,39.954708;116.450348,39.95422;116.449837,39.953735",
                            "action": "靠左",
                            "assistant_action": []
                        },
                        "6": {
                            "instruction": "沿S12机场高速向西行驶1.4千米靠左",
                            "orientation": "西",
                            "road": "S12机场高速",
                            "distance": "1414",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "120",
                            "polyline": "116.449837,39.953735;116.44899,39.952965;116.448296,39.952328;116.446487,39.950695;116.446213,39.95047;116.446022,39.950333;116.445831,39.950203;116.445671,39.950123;116.445465,39.950027;116.445244,39.94994;116.444847,39.949814;116.444595,39.949753;116.444252,39.949703;116.443871,39.949684;116.442238,39.949657;116.440269,39.949654;116.439766,39.949627;116.439651,39.949627;116.439255,39.949631;116.436798,39.949631;116.435501,39.949623",
                            "action": "靠左",
                            "assistant_action": []
                        },
                        "7": {
                            "instruction": "沿东直门北桥途径北二环行驶7.0千米靠左沿主路行驶",
                            "orientation": [],
                            "road": "东直门北桥",
                            "distance": "6993",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "630",
                            "polyline": "116.435501,39.949623;116.434135,39.949615;116.433258,39.949631;116.432274,39.949718;116.431389,39.949814;116.431007,39.949848;116.430641,39.94981;116.430229,39.949814;116.428162,39.949753;116.425018,39.949669;116.422554,39.949558;116.42141,39.949528;116.420677,39.949501;116.420052,39.949474;116.419281,39.949451;116.418625,39.949436;116.415588,39.949352;116.413177,39.949257;116.412651,39.949242;116.411903,39.949215;116.410919,39.949177;116.410583,39.949162;116.409164,39.949165;116.406021,39.949131;116.404984,39.949123;116.404289,39.949116;116.403343,39.949116;116.400452,39.949089;116.399811,39.949074;116.395149,39.949017;116.394028,39.94902;116.392952,39.949005;116.391533,39.949005;116.389687,39.949001;116.387474,39.94899;116.384964,39.948963;116.383591,39.948948;116.382812,39.94894;116.382187,39.948936;116.381233,39.948925;116.380081,39.948902;116.379158,39.948902;116.37825,39.948906;116.37748,39.948898;116.375954,39.948879;116.374916,39.948845;116.371956,39.94865;116.371559,39.948612;116.370804,39.948483;116.370605,39.948433;116.369911,39.94825;116.369408,39.948097;116.368629,39.947834;116.367676,39.947453;116.366997,39.947178;116.36599,39.946739;116.365166,39.946415;116.364906,39.946327;116.36396,39.946068;116.363342,39.945892;116.361336,39.945335;116.360657,39.945148;116.360115,39.944996;116.359085,39.944725;116.358803,39.944649;116.358238,39.944492;116.356804,39.944088;116.356567,39.944019;116.3564,39.943951;116.356094,39.943779;116.355957,39.943687;116.35582,39.943573;116.355713,39.943466;116.355621,39.94339;116.355553,39.943295;116.355507,39.94323;116.355453,39.943146;116.355362,39.942974",
                            "action": "靠左",
                            "assistant_action": "沿主路行驶"
                        },
                        "8": {
                            "instruction": "沿北二环途径西直门北大街、西二环向南行驶2.3千米向右前方行驶进入辅路",
                            "orientation": "南",
                            "road": "北二环",
                            "distance": "2312",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "549",
                            "polyline": "116.355362,39.942974;116.355324,39.942513;116.355331,39.94241;116.355362,39.942165;116.355362,39.941814;116.355385,39.941418;116.355415,39.940407;116.355431,39.939957;116.355522,39.938164;116.355537,39.937683;116.355576,39.936993;116.355591,39.93647;116.355621,39.935886;116.355659,39.935314;116.355675,39.93499;116.35582,39.932274;116.355865,39.930893;116.355873,39.930164;116.355896,39.929863;116.355904,39.929558;116.355919,39.929188;116.355949,39.92852;116.355972,39.927883;116.356033,39.926628;116.356041,39.926208;116.356079,39.925591;116.35611,39.924839;116.356125,39.924549;116.356232,39.922096",
                            "action": "向右前方行驶",
                            "assistant_action": "进入辅路"
                        },
                        "9": {
                            "instruction": "沿西二环出口途径阜成门南大街行驶899米左转",
                            "orientation": [],
                            "road": "西二环出口",
                            "distance": "899",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "271",
                            "polyline": "116.356232,39.922096;116.35611,39.921593;116.35614,39.921223;116.356163,39.920704;116.356186,39.91993;116.356209,39.919468;116.356232,39.918789;116.356247,39.918472;116.356262,39.918381;116.356277,39.918022;116.3563,39.917347;116.356331,39.916611;116.356354,39.916023;116.356377,39.915722;116.356407,39.915226;116.356422,39.914669;116.356438,39.913948",
                            "action": "左转",
                            "assistant_action": []
                        },
                        "10": {
                            "instruction": "沿广宁伯街向东行驶554米右转",
                            "orientation": "东",
                            "road": "广宁伯街",
                            "distance": "554",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "233",
                            "polyline": "116.356895,39.913868;116.357025,39.913872;116.357498,39.913872;116.357864,39.913876;116.358719,39.913902;116.359917,39.913902;116.361008,39.913929;116.361786,39.913948;116.363419,39.913998",
                            "action": "右转",
                            "assistant_action": []
                        },
                        "11": {
                            "instruction": "沿太平桥大街途径闹市口北街向南行驶598米向右前方行驶进入右转专用道",
                            "orientation": "南",
                            "road": "太平桥大街",
                            "distance": "598",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "156",
                            "polyline": "116.363419,39.913998;116.363388,39.913902;116.363213,39.913288;116.363197,39.91312;116.363159,39.912937;116.363152,39.912769;116.363129,39.912266;116.363136,39.911942;116.363136,39.911674;116.363144,39.911278;116.363159,39.910156;116.363174,39.909424;116.363182,39.908607",
                            "action": "向右前方行驶",
                            "assistant_action": "进入右转专用道"
                        },
                        "12": {
                            "instruction": "沿闹市口北街行驶154米右转",
                            "orientation": [],
                            "road": "闹市口北街",
                            "distance": "154",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "33",
                            "polyline": "116.363182,39.908607;116.363037,39.908497;116.363052,39.907265",
                            "action": "右转",
                            "assistant_action": []
                        },
                        "13": {
                            "instruction": "沿复兴门内大街向西行驶475米到达途经地",
                            "orientation": "西",
                            "road": "复兴门内大街",
                            "distance": "475",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "39",
                            "polyline": "116.363052,39.907265;116.361809,39.90728;116.361061,39.907284;116.360397,39.90728;116.359238,39.907288;116.358238,39.907295;116.357498,39.907318;116.357483,39.907318",
                            "action": [],
                            "assistant_action": "到达途经地"
                        },
                        "14": {
                            "instruction": "沿复兴门内大街向西行驶119米右转进入匝道",
                            "orientation": "西",
                            "road": "复兴门内大街",
                            "distance": "119",
                            "tolls": "0",
                            "toll_distance": "0",
                            "toll_road": [],
                            "duration": "10",
                            "polyline": "116.357483,39.907318;116.356995,39.907303;116.356094,39.907291",
               
    0 (0%)

    好评

    0 (0%)

    中评

    0 (0%)

    差评

    • 在线客服

      点击这里给我发消息 点击这里给我发消息

      官方微信

      仅处理投诉、举报及平台使用问题;
      商品问题请咨询商家客服!

    浏览记录