[英]Android: draw route from A to B in GoogleMap API v2
As we know, soon GoogleMap API v1 will be deprecated and we've seen some tutorials on how to draw route from A to B in MapView (lets say A is some building in Moscow and B is some building in Warsaw) 众所周知,不久将不推荐使用GoogleMap API v1,我们已经看到了一些有关如何在MapView中绘制从A到B的路线的教程(比如说A是莫斯科的建筑物,而B是华沙的建筑物)
However, browsing the internet, I haven't found any decent tutorial on how to get and draw route on GoogleMap (not in MapView). 但是,在浏览互联网时,我还没有找到任何有关如何在GoogleMap上获取和绘制路线的不错的教程(不是在MapView中)。
In tutorial that I've seen and used there was used KMLHandler, but parsing failed. 在我看过并使用过的教程中,使用了KMLHandler,但是解析失败。
So does anyone know is it possible to draw route on GoogleMap from A to B? 有人知道在GoogleMap上从A到B的路线吗? Thanks 谢谢
Yes it is possible. 对的,这是可能的。
The Android developers website have the whole procedure very well explained: https://developers.google.com/maps/documentation/android/lines Android开发人员网站已很好地说明了整个过程: https : //developers.google.com/maps/documentation/android/lines
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.