title: Route half way point on android code
body: <p>i've drawn line like this, </p>
  
  <p>and i've found Mid point  using below code,</p>
  
  <pre><code>        public void midPoint(double lat1,double lon1,double lat2,double lon2){
  
          double dLon = Math.toRadians(lon2 - lon1);
  
          lat1 = Math.toRadians(lat1);
          lat2 = Math.toRadians(lat2);
          lon1 = Math.toRadians(lon1);
  
          double Bx = Math.cos(lat2) * Math.cos(dLon);
          double By = Math.cos(lat2) * Math.sin(dLon);
          finalLat= Math.toDegrees(Math.atan2(Math.sin(lat1) + Math.sin(lat2), Math.sqrt((Math.cos(lat1) + Bx) * (Math.cos(lat1) + Bx) + By * By)));
          finalLng= Math.toDegrees(lon1 + Math.atan2(By, Math.cos(lat1) + Bx));
      }
  </code></pre>
  
  <p>Its successfully working..</p>
  
  <p><img src="https://i.stack.imgur.com/Vg7Fk.png" alt="enter image description here"></p>
  
  <p>But i'm unable to find the "R"- Route Half Way point.,  How to find the route half way point on android. i've searched on web, i found the <a href="https://gis.stackexchange.com/questions/18584/how-to-find-a-point-half-way-between-two-other-points">https://gis.stackexchange.com/questions/18584/how-to-find-a-point-half-way-between-two-other-points</a>. But in this method, what values are being assigned for x,y,z.. i dont know. </p>
  
  <p>or any other code  to find Route half way on android. </p>