I Can't get Real Path between two points , I got a direct line between them, here is my sample code, I put that code under onCreate method , also I tried to handle it by runnable but without getting a worth result , just a direct line between two points
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();
Any advice, suggestions or help ?