Android映射V2在textview中驱动指令

时间:2013-09-26 09:04:32

标签: android json google-maps geolocation driving-directions

我正在开发一个地图应用程序,其中gps检测我当前的位置并放置一个标记。使用微调器我根据类别得到附近的地方。我需要的是,当我长按旋转器的标记时,使用意图它应该显示步骤通过新页面中的步骤导航说明,它还应绘制路线,即从我的位置到触摸位置的折线。

我使用了http://wptrafficanalyzer.in/blog/showing-nearby-places-and-place-details-using-google-places-api-and-google-maps-android-api-v2/代码来实现目标。

请帮助..提前谢谢。

1 个答案:

答案 0 :(得分:0)

您可以查看我在地图上绘制导航时写的博文:

Google Maps V2 for Android: Draw Driving Direction on Map

为了添加Step by Step导航,我猜你需要稍微更改一下解析方法,以便从你收到的JSON文件中获取这些信息。