Advertisement
Guest User

Untitled

a guest
Sep 19th, 2017
96
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. http://www.geomidpoint.com/destination/
  2.  
  3. Latitude: 58°48′29″S -58.80806228
  4. Longitude: 17°30′11″E 17.50310241
  5.  
  6. GeodeticCalculator calc = new GeodeticCalculator();
  7. calc.setStartingGeographicPoint(0,-60);
  8. calc.setDirection(90, 1000000);
  9. Point2D dest = calc.getDestinationGeographicPoint();
  10. System.out.println("lon:"+dest.getX()+" lat:"+dest.getY());
  11.  
  12. lon:17.5031024131395 lat:-58.808062278802744
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement