【问题标题】:android google maps walking directions安卓谷歌地图步行路线
【发布时间】:2015-06-12 10:01:11
【问题描述】:

我正在使用 google maps api v2 开发一个 android 应用程序。 问题是谷歌地图会根据道路路线显示方向,即使它是空旷的地面。 例如,取这两个 LatLng LatLng1 : -33.891143, 151.224473 LatLng2 : -33.891580, 151.225336

http://i.stack.imgur.com/Xt0Ox.png

但我想显示一个笔直的方向,因为它是一个开阔的地面。我正在使用 JSON 来获取方向(公交、步行、驾驶),例如 http://maps.googleapis.com/maps/api/directions/json?origin=-33.891143, 151.224473&destination=-33.891580, 151.225336&sensor=false&units=metric&mode=transit

有没有办法做到这一点? 提前致谢

【问题讨论】:

    标签: android google-maps android-maps


    【解决方案1】:

    我认为谷歌地图只是不知道你可以走过去。

    一种解决方法是在两点之间画一个simple polyline,如果它们是close to each other,如果是they are both open ground

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2014-02-23
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      相关资源
      最近更新 更多