2013-01-02 134 views

回答

0

试试这个代码

String uri = "http://maps.google.com/maps?saddr=" + 
    currentLatitude+","+currentLongitude+"&daddr="+fixedLatitude+","+fixedLongitude; 
    Intent intent = new Intent(android.content.Intent.ACTION_VIEW, 
    Uri.parse(uri)); intent.setClassName("com.google.android.apps.maps", 
    "com.google.android.maps.MapsActivity"); startActivity(intent); 

+0

这个代码发送到GoogleMap的方向,这可能是帮助。但我通过使用标记点运行时间来传递经度纬度。在给定的代码中传递的latlngs没有给出路由。我想绘制标记点之间的路径路径。 – Krunal

相关问题