使用googleapis纬度和经度的驾驶距离与Google地图不同

时间:2014-09-27 14:16:31

标签: c# google-maps google-maps-api-3

C#Visual Studio 2012

我正在使用

http://maps.googleapis.com/maps/api/directions/json?origin=29.695852,-91.223056&destination=,&mode=driving&sensor=true

获得两个地点之间的行车距离。

但是当我去谷歌并输入街道地址而不是纬度和经度时,距离的差异就足以引起关注了。

我首先使用谷歌来获取纬度和经度。

知道发生了什么事吗?

由于

1 个答案:

答案 0 :(得分:0)

您缺少目标参数,例如 destination=29.695852,-91.223056

试试这个网址 - Directions API