使用我的Android应用程序,我定期获取用户的当前位置,并将其作为标记显示在Google Map 上,
$ map-> addMarker($ row ['lat'],$ row ['lng'],$ isclickable,$ title,$ info);
请帮我画一条加入这些标记的路线 .
还有一件事,我正在使用位置管理器网络提供程序来获取坐标,因此大多数点(纬度,经度)都不在路上 . 有没有办法在路上正确使用它?
检查这些链接,
http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html
How to draw a path on a map using kml file?
J2ME/Android/BlackBerry - driving directions, route between two locations
http://blog.synyx.de/2010/06/routing-driving-directions-on-android-part-1-get-the-route/
http://code.google.com/android/add-ons/google-apis/maps-overview.html
1 回答
检查这些链接,
http://csie-tw.blogspot.com/2009/06/android-driving-direction-route-path.html
How to draw a path on a map using kml file?
J2ME/Android/BlackBerry - driving directions, route between two locations
http://blog.synyx.de/2010/06/routing-driving-directions-on-android-part-1-get-the-route/
http://code.google.com/android/add-ons/google-apis/maps-overview.html