Google Developers 使用 API V2 讨论了获取路由。API V1 确实不是正确的答案。这是 API V2 代码
public void setupLine(LatLng startLocation){
//set up path
PolylineOptions line=new PolylineOptions().add(startLocation).add(startLocation).color(mLineColour);
mPath=mMap.addPolyline(line);
mPath.setGeodesic(true);
//Add 2 points
pathPoints=new ArrayList<LatLng>(2);
pathPoints.add(startLocation);//origin
pathPoints.add(startLocation);//destination - updated later
}
private void updateLine(LatLng position){
//replace location
pathPoints.set(1, position);
//assign new points to path
mPath.setPoints(pathPoints);
}