在一个Android应用程序使用谷歌地图API应用程序、地图、Android、API

2023-09-03 21:21:00 作者:夜闯你房间

我一直在寻找首次在谷歌地图API和我有一个快速的问题。我沃金在Android应用程序,我在想,如果有一个很好的方式,采取我使用谷歌地图(捕捉到道路)已经创建了一个路线和使用API​​显示的Andr​​oid应用程序这条路?

I was looking at the Google Map API for the first time and I had a quick question. I am woking on an Android application and I was wondering if there is a good way to take a route that I have created using Google Maps (snapping to roads) and use the API display this route on an Android application?

我看到有一种方法可以产生叠加与坐标创建多段线的图像,但它似乎将被因子评分创建一个折线像一个弯曲的道路。

I see that there is a way to generate images overlayed with polylines created with coordinates but it seems like it would be tought to create a polyline for something like a curved road.

谢谢, 罗布

推荐答案

这个功能是从地图API中删除,但你可以自己实现它,或者使用一个库像这样的: http://home.ameliemedia.com/android-app-aroundme/#tips

This functionality was removed from the maps API, but you could implement it yourself or use a library like this one: http://home.ameliemedia.com/android-app-aroundme/#tips