摘要:
下面是一段利用谷歌地图API获取点点之间距离的代码,采用V3版本中的DirectionsService()var request;var distanceArray = [];function getdistance() { distanceArray = []; var directionsService = new google.maps.DirectionsService(); for (var a = 0; a < pointsArray.length; a++) { for (var b = 0; b < pointsArray.length; b++... 阅读全文
posted @ 2012-09-06 14:43 allon6318 阅读(749) 评论(0) 推荐(0) 编辑