【发布时间】:2015-11-04 16:27:48
【问题描述】:
我正在使用谷歌地图方向 API 来获取方向 json,但我的问题是我无法将当前位置传递给 origin 参数。有没有办法做到这一点?
http://maps.google.com/maps/api/directions/json?origin=41.393529,-72.811514&destination=41.311725,-72.740211
【问题讨论】:
-
url 格式看起来不错,它返回结果。究竟是什么问题?
-
我想要原点的当前位置
-
要获取当前位置,请查看以下答案:stackoverflow.com/a/30255219/4409409
标签: android google-maps google-maps-api-3 google-directions-api