【问题标题】:Google Maps Navigation Android with sights谷歌地图导航 Android 与景点
【发布时间】:2016-01-17 12:46:22
【问题描述】:

我想打开 Google 地图以从 A 点导航到 B 点。经过其他一些点。它应该向我展示近景。

这就是我现在开始意图的方式:

Intent navigation = new Intent(Intent.ACTION_VIEW, Uri //saddr=46.625799, 14.312887 &daddr=46.623510, 14.300612 &mode=bicycling &restaurants
                    .parse("http://maps.google.com/maps?saddr=46.625799, 14.312887 &daddr=46.623510, 14.300612 &mode=bicycling &q=restaurants" ));
startActivity(navigation);

但它没有显示附近的餐馆... 我的意思是我不想要餐厅我想要视觉但我不知道我应该写什么而不是餐厅......

【问题讨论】:

    标签: android google-maps android-intent navigation maps


    【解决方案1】:

    您必须为它调用不同的 API。首先,景点可能有点模糊,但 Places API 有不同的supported Places Types,您可以选择与您想要的匹配的。

    在实际搜索方面,你可以看看如何调用Place Search。只需设置可选参数type 即可。

    【讨论】:

      猜你喜欢
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2012-07-24
      相关资源
      最近更新 更多