在PHP中我可以使用这段代码:
$url = "http://maps.googleapis.com/maps/api/distancematrix/json?origins=$location1& destinations=$location2&mode=bicycling&language=en-EN&sensor=false";
$data = @file_get_contents($url);
$obj = json_decode($data);
$arr = (array)$obj;
获取返回2个位置之间距离的值数组。
VSTO可以实现这种网络互动吗?我用Google搜索了高低,我搜索的任何内容都没有给我任何结果。
Ergo,我想我错过了什么。