开发者

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

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜