Android谷歌地图方向和道路内的应用程序 [英] Android Google Maps directions and road path inside app
问题描述
我现在正在寻找几个小时,我似乎无法达成任何解决方案。
我正在开发一个在地图上显示一些参考点的应用程序。我想绘制这些点之间的道路,并显示我的应用程序内的各个方向。我不想启动谷歌地图应用程序来显示那些信息。
这可能吗?如果是的话,你可以点一些教程吗?
Thks提前。
KML输出在Google地图上不再有效。
您必须使用路线api才能从Google获取路线。
http://maps.googleapis.com/maps/api/directions/xml?origin= {lat_lon_origin}& destination = {lat_lon_dest}& ie = UTF8& oe = UTF8& 0& om = 0& sensor = false
查看这篇文章的相关信息:
I'm searching for a few hours right now, and i can't seem to reach any solution. I am developing an app that displays some reference points in a map. I want to draw the road path between these points, and show the respective directions inside my app. I don't want to launch google maps app to show those informations there.
Is this possible? If yes, can you point some tutorials?
Thks in advance.
KML Output is not working anymore on google maps. You must use the directions api to get routes from google.
http://maps.googleapis.com/maps/api/directions/xml?origin={lat_lon_origin}&destination={lat_lon_dest}&ie=UTF8&oe=UTF8&0&om=0&sensor=false
See this post for infos:
Google Maps API Version difference
这篇关于Android谷歌地图方向和道路内的应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!