title: How to display Route on my OSM application
body: <p><img src="https://i.stack.imgur.com/VrPXF.jpg" alt="it show straight line"></p>
  
  <p>In log </p>
  
  <pre><code>02-19 14:41:29.151  10336-10336/com.example.app E/BONUSPACK﹕ OSRMRoadManager::getRoad: request failed.
  
  02-19 14:41:29.151  10336-10336/com.example.app I/System.out﹕ 2
  </code></pre>
  
  <p>and I have <code>route.gpx</code> file but i don't know how to use it</p>
  
  <pre><code>    GeoPoint startPoint = new GeoPoint(48.13, -1.63);
  
      mapView = (MapView) findViewById(R.id.mapview);
      mapCTRL = (MapController) mapView.getController();
  
      mapCTRL.setZoom(13);
      mapView.setBuiltInZoomControls(true);
      mapCTRL.setCenter((new GeoPoint(startPoint)));
  
      RoadManager roadManager = new OSRMRoadManager();
      ArrayList&lt;GeoPoint&gt; waypoints = new ArrayList&lt;GeoPoint&gt;();
      waypoints.add(startPoint);
      //waypoints.add(new GeoPoint(16.236505, 103.264646)); //end point บ้านดินดำ
      waypoints.add(new GeoPoint(48.4, -1.9)); //end point
  
      Road road = roadManager.getRoad(waypoints);
      System.out.println(road.mStatus);
  
      Polyline roadOverlay = RoadManager.buildRoadOverlay(road, this);
      mapView.getOverlays().add(roadOverlay);
      mapView.invalidate();
  
      setContentView(mapView);
  
      mapView.invalidate();
  </code></pre>