1. //根据经纬度计算两点距离  
  2.   var distance = new GLatLng(39.917, 116.397).distanceFrom(new GLatLng(37.4419, -122.1419));  
  3.   alert(parseInt(distance/1000,10) + "公里");  

源自:http://www.iteye.com/topic/582657

相关文章:

  • 2022-12-23
  • 2021-11-27
  • 2021-11-27
  • 2021-12-22
  • 2022-12-23
  • 2021-09-03
猜你喜欢
  • 2021-11-27
  • 2022-02-10
  • 2021-12-20
  • 2021-09-30
  • 2022-01-31
  • 2021-12-19
  • 2022-12-23
相关资源
相似解决方案