简体   繁体   中英

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 still 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM