显示当前位置和附近的地方和路线两地之间使用谷歌地图API在Android中当前位置、两地、路线、附近

由网友(7饭泡8喝9玩10尚)分享简介:我需要使用开发一个应用程序谷歌地图 Android中找到我的当前位置的和需要的找到最近的位置。(例如:从我目前的位置的附近派出所)它应该接受我的当前位置和输出应该显示最近的地方。谁能帮我给一些建议,链接,教程做到这一点?解决方案 先通过 本教程 获取熟悉Android的谷歌地图,这对于 API 2 以检索设...

我需要使用开发一个应用程序谷歌地图 Android中找到我的当前位置的和需要的找到最近的位置。

(例如:从我目前的位置的附近派出所)

它应该接受我的当前位置和输出应该显示最近的地方。

谁能帮我给一些建议,链接,教程做到这一点?

解决方案

先通过 本教程 获取熟悉 Android的谷歌地图,这对于 API 2

以检索设备的当前位置见 this回答 或本 another回答 和 API 2

然后你可以通过你的位置,使用 谷歌将获得地方靠近     API 并使用场所的API看到的 这博客。

按位置使用越来越近地标后的 this 博客与源$ C ​​$ C ,以显示与气球叠加标志在地图上用API 2。

您也有很大的eample画在地图上两点间的路由 看看这里这些链接 Link1和 Link2这Great答 。

执行这些步骤后,您将能够轻松地做你的应用程序。条件是唯一的,你必须阅读和理解,因为喜欢魔术的不会是完整的点击。

I need to develop an application using Google Maps in Android to locate my current location and need to find nearest location.

谷歌地图离线导航版下载 谷歌地图离线版下载v9.48.1 官网安卓版 2265安卓网

(For example: Nearby police station from my current location.)

It should accept my current location and output should display nearest place.

Can anyone help me to give some suggestion,links,tutorial to do that?

解决方案

First go through this tutorial for getting familiar with Android Google Maps and this for API 2.

To retrive the current location of device see this answer or this another answer and for API 2

Then you can get places near by your location using Google Place API and for use of Place Api see this blog.

After getting Placemarks of near by location use this blog with source code to show markers on map with balloon overlay with API 2.

You also have great eample to draw route between two points on map look here in these links Link1 and Link2 and this Great Answer.

After following these steps you will be easily able to do your application. The condition is only that you will have to read it and understand, because like magic its not going to be complete in a click.

阅读全文

相关推荐

最新文章