我正在尝试使用 request.get(url,parameter) 在 bing 地图距离矩阵 api 中传递参数,但它没有以正确的顺序传递
我试过这个
enter code here
parameters = {
'origins':[47.6044,-122.3345],
'destinations':{"latitude":47.6731,"longitude":-122.2057},
"travelMode": "driving",
'key':api_for_bing
}
但它给出了回应:
'https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=47.6044&origins=-122.3345&destinations=latitude&destinations=longitude&travelMode=driving&key=my_key'
谁能帮我这个。
虽然它应该是这样的
'https://dev.virtualearth.net/REST/v1/Routes/DistanceMatrix?origins=47.6044,-122.3345;47.6731,-122.1185;47.6149,-122.1936&destinations=47.4747,-122.2057&travelMode=driving&key=my_key'