TaobaoClient client = new DefaultTaobaoClient(url, appkey, secret);
AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceRequest req = new AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceRequest();
req.setAmapOrderId("15132016000020004658908485");
req.setCurrentLng("116.310905");
req.setCurrentLat("39.992806");
req.setCurrentName("北京大学");
req.setCurrentPoi("B000A816R6");
req.setNewEndLng("116.499867");
req.setNewEndLat("39.86741");
req.setNewEndName("北京欢乐谷");
req.setNewEndPoi("B000A8163E");
req.setTraceId("6d684a10-873a-5c84-878c-161f15923200");
req.setClientSource("amap-car");
AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceResponse rsp = client.execute(req);
System.out.println(rsp.getBody());
ITopClient client = new DefaultTopClient(url, appkey, secret);
AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceRequest req = new AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceRequest();
req.AmapOrderId = "15132016000020004658908485";
req.CurrentLng = "116.310905";
req.CurrentLat = "39.992806";
req.CurrentName = "北京大学";
req.CurrentPoi = "B000A816R6";
req.NewEndLng = "116.499867";
req.NewEndLat = "39.86741";
req.NewEndName = "北京欢乐谷";
req.NewEndPoi = "B000A8163E";
req.TraceId = "6d684a10-873a-5c84-878c-161f15923200";
req.ClientSource = "amap-car";
AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceResponse rsp = client.Execute(req);
Console.WriteLine(rsp.Body);
$c = new TopClient;
$c->appkey = $appkey;
$c->secretKey = $secret;
$req = new AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceRequest;
$req->setAmapOrderId("15132016000020004658908485");
$req->setCurrentLng("116.310905");
$req->setCurrentLat("39.992806");
$req->setCurrentName("北京大学");
$req->setCurrentPoi("B000A816R6");
$req->setNewEndLng("116.499867");
$req->setNewEndLat("39.86741");
$req->setNewEndName("北京欢乐谷");
$req->setNewEndPoi("B000A8163E");
$req->setTraceId("6d684a10-873a-5c84-878c-161f15923200");
$req->setClientSource("amap-car");
$resp = $c->execute($req);
curl -X POST 'http://gw.api.taobao.com/router/rest' \
-H 'Content-Type:application/x-www-form-urlencoded;charset=utf-8' \
-d 'app_key=12129701' \
-d 'format=json' \
-d 'method=alibaba.amap.channel.car.order.destination.modify.estimate.price' \
-d 'partner_id=apidoc' \
-d 'sign=FA1CB2F7C6F55AB6C93BBF88B9F35824' \
-d 'sign_method=hmac' \
-d 'timestamp=2025-04-29+18%3A33%3A28' \
-d 'v=2.0' \
-d 'amap_order_id=15132016000020004658908485' \
-d 'client_source=amap-car' \
-d 'current_lat=39.992806' \
-d 'current_lng=116.310905' \
-d 'current_name=%E5%8C%97%E4%BA%AC%E5%A4%A7%E5%AD%A6' \
-d 'current_poi=B000A816R6' \
-d 'new_end_lat=39.86741' \
-d 'new_end_lng=116.499867' \
-d 'new_end_name=%E5%8C%97%E4%BA%AC%E6%AC%A2%E4%B9%90%E8%B0%B7' \
-d 'new_end_poi=B000A8163E' \
-d 'trace_id=6d684a10-873a-5c84-878c-161f15923200'
# -*- coding: utf-8 -*-
import top.api
req=top.api.AlibabaAmapChannelCarOrderDestinationModifyEstimatePriceRequest(url,port)
req.set_app_info(top.appinfo(appkey,secret))
req.amap_order_id="15132016000020004658908485"
req.current_lng="116.310905"
req.current_lat="39.992806"
req.current_name="北京大学"
req.current_poi="B000A816R6"
req.new_end_lng="116.499867"
req.new_end_lat="39.86741"
req.new_end_name="北京欢乐谷"
req.new_end_poi="B000A8163E"
req.trace_id="6d684a10-873a-5c84-878c-161f15923200"
req.client_source="amap-car"
try:
resp= req.getResponse()
print(resp)
except Exception,e:
print(e)
pTopRequest pRequest = alloc_top_request();
pTopResponse pResponse = NULL;
pTaobaoClient pClient = alloc_taobao_client(url, appkey, appsecret);
set_api_name(pRequest,"alibaba.amap.channel.car.order.destination.modify.estimate.price");
add_param(pRequest,"amap_order_id","15132016000020004658908485");
add_param(pRequest,"current_lng","116.310905");
add_param(pRequest,"current_lat","39.992806");
add_param(pRequest,"current_name","北京大学");
add_param(pRequest,"current_poi","B000A816R6");
add_param(pRequest,"new_end_lng","116.499867");
add_param(pRequest,"new_end_lat","39.86741");
add_param(pRequest,"new_end_name","北京欢乐谷");
add_param(pRequest,"new_end_poi","B000A8163E");
add_param(pRequest,"trace_id","6d684a10-873a-5c84-878c-161f15923200");
add_param(pRequest,"client_source","amap-car");
pResponse = top_execute(pClient,pRequest,NULL);
printf("ret code:%d\n",pResponse->code);
if(pResponse->code == 0){
pTopResponseIterator ite = init_response_iterator(pResponse);
pResultItem pResultItem = alloc_result_item();
while(parseNext(ite, pResultItem) == 0){
printf("%s:%s\n",pResultItem->key,pResultItem->value);
}
destroy_response_iterator(ite);
destroy_result_item(pResultItem);
}
destroy_top_request(pRequest);
destroy_top_response(pResponse);
destroy_taobao_client(pClient);
TopClient = require('./topClient').TopClient;
var client = new TopClient({
'appkey': 'appkey',
'appsecret': 'secret',
'REST_URL': 'http://gw.api.taobao.com/router/rest'
});
client.execute('alibaba.amap.channel.car.order.destination.modify.estimate.price', {
'amap_order_id':'15132016000020004658908485',
'current_lng':'116.310905',
'current_lat':'39.992806',
'current_name':'北京大学',
'current_poi':'B000A816R6',
'new_end_lng':'116.499867',
'new_end_lat':'39.86741',
'new_end_name':'北京欢乐谷',
'new_end_poi':'B000A8163E',
'trace_id':'6d684a10-873a-5c84-878c-161f15923200',
'client_source':'amap-car'
}, function(error, response) {
if (!error) console.log(response);
else console.log(error);
})