Road distance,Actual distance between two places

后端 未结 3 1773
没有蜡笔的小新
没有蜡笔的小新 2020-12-19 21:23

I want to calculate the driving distance between two locations [the user\'s specified locations], before user starts the driving. I used many formulas and getDistanceFrom in

3条回答
  •  [愿得一人]
    2020-12-19 21:33

    See directions API of Google Maps

    You have just to make a HTTP request:
    http://maps.googleapis.com/maps/api/directions/output?parameters

    Answer could be json or xml. You will find the distance in the answer

提交回复
热议问题