working out distances between two points using google maps api?

后端 未结 8 1332
北海茫月
北海茫月 2021-01-03 10:39

Is it possible to send two lat long points to google to calculate the distance between the two?

8条回答
  •  清酒与你
    2021-01-03 11:26

    there is a handy function

    http://code.google.com/apis/maps/documentation/reference.html#GLatLng.distanceFrom

    basically create 2 GlatLng objects then use the above method

提交回复
热议问题