working out distances between two points using google maps api?

后端 未结 8 1333
北海茫月
北海茫月 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:13

    What you're after is the Haversine formula. You don't need Google Maps to do this, you can work it out separately. There's a script to do this (in JavaScript) here.

提交回复
热议问题