我无法获得两点之间的真实路径,我之间有一条直线,这是我的示例代码, 我把那些代码放在onCreate方法下,我也尝试通过runnable处理它,但没有得到值得的结果,只是两点之间的直接线
GeoPoint startPoint = new GeoPoint(48.2,-1.88) ;
RoadManager roadManager = new OSRMRoadManager();
ArrayList waypoints = new ArrayList();
waypoints.add(startPoint); GeoPoint endPoint = new GeoPoint(48.4, -1.9);
waypoints.add(endPoint);
Road road = roadManager.getRoad(waypoints);
Polyline roadOverlay = RoadManager.buildRoadOverlay(road, this);
map.getOverlays().add(roadOverlay);
map.invalidate();
任何建议,建议或帮助?