开发者

Android: how to transform lat & lon in a given angle?

开发者 https://www.devze.com 2023-04-07 18:54 出处:网络
I have lat & lon that need to plot into floor map image. The problem is the floor map image\'s angle is not proportionate with the real world map. Anybody knows how to transform real lat & lon

I have lat & lon that need to plot into floor map image. The problem is the floor map image's angle is not proportionate with the real world map. Anybody knows how to transform real lat & lon values in a given angle?

UPDATES1 I have previous posted question which has relation with this post. Please take a look. plot real world coor to sti开发者_运维百科ll image map


Latitude, Longitude refers to a single point on earth's surface. It does not have an angle.

If you are talking about the Location class however, you can get it's bearing from North, using

if(location.hasBearing())
 location.getBearing()

If you are talking about a pair of lat, lon values, you can calculate the bearing using the bearingTo() api

0

精彩评论

暂无评论...
验证码 换一张
取 消