我想打开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);但是它没有告诉我附近的餐馆。我的意思是,我不想去餐馆,我想看风景,但我不知道我应该写什么,而不是餐馆……
发布于 2016-01-19 12:13:10
你必须为它调用一个不同的API。首先,景点可能有点模糊,但是Places API有不同的supported Places Types可供您选择,这将与您想要的相匹配。
在实际搜索方面,您可以查看如何调用Place Search。只需设置可选参数type,就可以了。
https://stackoverflow.com/questions/34838472
复制相似问题