title: how to use of speed and time to calculate next time's latitude and longitude
body: <p>I am trying to get latitude and longitude based on speed and start basic points.am trying with this JAVA code.</p>
  
  <p>my aim is  basic start latitude,longitude point-A with 0 speed,next finding location point-B i.e. after 30 seconds with 32 speed next location point is 18.473993,79.14167, then point c..etc..</p>
  
  <p>Here is my code :</p>
  
  <pre><code>      public class DemoCallLatLng {
          public static void main(String s[]){        
          double speed = 32.5;//random speed
          double time = 0.5;//30seconds
          double lat1 = 18.4742516;//start latitude point
          double lon1 = 79.14007;//start longitude point
          double distance = speed * time;//distance calculation
          double lon2;
          double lat2;
          lat2 =asin(Math.sin(lat1)*Math.cos('K')+Math.cos(lat1)*Math.sin('K')*Math.cos('K'))
          double dlon=atan2(Math.sin(tc)*Math.sin('K')*Math.cos(lat1),Math.cos('K')-Math.sin(lat1)*Math.sin(lat2))
          lon2=mod( lon1-dlon +Math.PI,2*Math.PI )-Math.PI;
          System.out.println(lat2+" : "+dlon+" : "+lon2);
      }
  }
  </code></pre>