获取可选择路线

请求地址: /v2/common/queryAlternativeRoute

服务协议: HTTP/GET

请求参数:

参数名称 类型 必选 说明
client_id string Y 申请时的client_id
timestamp long Y 时间戳
sign string Y 签名
order_no long Y 订单编号

响应data参数(List):

参数名 类型 必有 说明
estimatePrice Integer Y 预估价格,单位分(折后)
tolls Integer Y 过路过桥费,单位分
distance Integer Y 预估总距离,单位米
duration Integer Y 预估总时间,单位:秒
light Integer Y 红绿灯数量
aMapRouteId String Y 路线ID
label String Y 路线标签
traffic String Y 分段路况,示例:"151-1;152-0"
wayPoints String Y 路径坐标点,返回格式["120.219398,30.207773","120.219414,30.207777"]
isCurrentRoute Boolean Y 是否当前路线
companyOrderReduceAmount Long Y 企业订单立减金额
donateActivityAmount Long Y 赠额活动金额金额

结果示例:

{
  "code": 200,
  "data": [
    {
      "distance": 4250,
      "isCurrentRoute": false,
      "aMapRouteId": "39916a670b5943cdaea4b6da6f503ada",
      "companyOrderReduceAmount": 0,
      "label": "大众常选",
      "donateActivityAmount": 171,
      "tolls": 0,
      "duration": 720,
      "light": 13,
      "wayPoints": "120.22534,30.1905;120.225572,30.190456;120.225572,30.190456;120.225615,30.190735;120.225631,30.190837;120.225652,30.190934;120.225652,30.190934;120.225717,30.190934;120.225781,30.190923;120.225781,30.190923;120.225808,30.191057;120.225808,30.191057;120.226199,30.191025;120.226296,30.191009;120.226752,30.190907;120.227074,30.190805;120.227358,30.190682;120.227675,30.190429;120.227701,30.190408;120.227846,30.190322;120.227895,30.190279;120.228018,30.190145;120.228115,30.190027;120.228243,30.189872;120.22841,30.189732;120.228673,30.189523;120.228812,30.189453;120.228812,30.189453;120.22893,30.190011;120.228962,30.19021;120.229,30.190429;120.229016,30.190531;120.229043,30.190746;120.22908,30.191256;120.229102,30.192189;120.229112,30.19331;120.229118,30.194034;120.229128,30.194914;120.229134,30.195086;120.229144,30.196658;120.229155,30.19765;120.229155,30.197698;120.229166,30.199351;120.229166,30.199447;120.229182,30.200155;120.229182,30.2003;120.229187,30.20045;120.229193,30.201416;120.229198,30.201818;120.229209,30.202875;120.229209,30.20295;120.229225,30.204484;120.229187,30.205064;120.229171,30.205294;120.229053,30.206024;120.229027,30.206158;120.228833,30.206727;120.228796,30.206855;120.228608,30.207354;120.228308,30.208014;120.228088,30.208416;120.227889,30.208738;120.227836,30.208819;120.227498,30.209302;120.227288,30.209586;120.226494,30.210546;120.226419,30.210621;120.225475,30.211737;120.224918,30.212402;120.224821,30.212515;120.224665,30.212692;120.224467,30.212949;120.224263,30.213207;120.224059,30.213416;120.223818,30.213711;120.223265,30.214382;120.222401,30.215422;120.222214,30.215653;120.221618,30.216361;120.220685,30.217482;120.220443,30.217772;120.220014,30.218239;120.2198,30.218453;120.219666,30.218582;120.219392,30.218834;120.218512,30.219526;120.218512,30.219526;120.218866,30.219929;120.219886,30.22091;120.219886,30.22091;120.220084,30.220384;120.220143,30.220017",
      "estimatePrice": 2039,
      "traffic": "11-0;19-2;20-3;22-2;24-3;27-4;89-1;91-0"
    },
    {
      "distance": 4390,
      "isCurrentRoute": false,
      "aMapRouteId": "e1826dc182f84cd883a959a209b8633b",
      "companyOrderReduceAmount": 0,
      "label": "备选二",
      "donateActivityAmount": 171,
      "tolls": 0,
      "duration": 780,
      "light": 13,
      "wayPoints": "120.22534,30.1905;120.225572,30.190456;120.225572,30.190456;120.225615,30.190735;120.225631,30.190837;120.225652,30.190934;120.225652,30.190934;120.225717,30.190934;120.225781,30.190923;120.225781,30.190923;120.225808,30.191057;120.225808,30.191057;120.226199,30.191025;120.226296,30.191009;120.226752,30.190907;120.227074,30.190805;120.227358,30.190682;120.227358,30.190682;120.22738,30.191106;120.227396,30.191583;120.227401,30.191696;120.227412,30.191894;120.227428,30.192307;120.227455,30.192624;120.227455,30.192624;120.226709,30.19264;120.226376,30.192651;120.224944,30.192683;120.223834,30.192709;120.223834,30.192709;120.22385,30.192838;120.223839,30.19331;120.223839,30.193525;120.223839,30.193723;120.22385,30.194378;120.223855,30.194812;120.22385,30.194984;120.223828,30.196078;120.223823,30.196223;120.223812,30.197334;120.223802,30.19758;120.223802,30.197645;120.223743,30.198294;120.223523,30.200139;120.223507,30.200295;120.223491,30.201341;120.223485,30.201416;120.223474,30.201523;120.223458,30.201738;120.223405,30.202714;120.223372,30.204093;120.223169,30.205396;120.223158,30.20553;120.223024,30.206383;120.222965,30.206652;120.222804,30.207161;120.222557,30.207681;120.222477,30.207826;120.222369,30.208003;120.222112,30.208406;120.221924,30.20869;120.221377,30.209468;120.22105,30.209988;120.220974,30.210112;120.220776,30.210423;120.22061,30.210734;120.220422,30.211104;120.220422,30.211104;120.221651,30.211764;120.222798,30.212402;120.223211,30.212633;120.223453,30.212767;120.22407,30.21311;120.224059,30.213416;120.224059,30.213416;120.223818,30.213711;120.223265,30.214382;120.222401,30.215422;120.222214,30.215653;120.221618,30.216361;120.220685,30.217482;120.220443,30.217772;120.220014,30.218239;120.2198,30.218453;120.219666,30.218582;120.219392,30.218834;120.218512,30.219526;120.218512,30.219526;120.218866,30.219929;120.219886,30.22091;120.219886,30.22091;120.220084,30.220384;120.220143,30.220017",
      "estimatePrice": 2100,
      "traffic": "11-0;13-1;17-3;22-2;24-4;41-1;47-2;48-3;90-1;92-0"
    }
  ],
  "success": true
}