maps - Android SphericalUtil.computeOffset with 90 degrees returns point with wrong latitude -


i'm using sphericalutil.computeoffset, takes 3 params

 public static latlng computeoffset(latlng from, double distance, double heading) 

in way:

latlng position = new latlng(50, 14); double distance = 2 * 1000 * 1000 //2 thousand kilometers latlng result = sphericalutil.computeoffset(position, distance, 90); 

and expect resulting point have same latitude, because pass 90 degrees, "strictly east" direction, in real returns point with

(46.76979930677399,40.79730389984821)

coordinates.

if use less distance closer origin, if bigger - becomes worse

what doing wrong? maybe i'm passing wrong angle?


Comments

Popular posts from this blog

angular - Is it possible to get native element for formControl? -

unity3d - Rotate an object to face an opposite direction -

javascript - Why jQuery Select box change event is now working? -