简体   繁体   中英

find degree in radian through lat long in android

i need to calculate degree of marker in radians like 90 degree from current latitude and longitude. Then i am able to pass that degree in marker it will use to rotate my marker in that postion.we can say car. If anyone have idea please share . thanks in advance

With the latitude and longitude you get a point. If you have any more latitude and longitude of another point (eg your current point and an end point any), then you can draw a line between two points. Given some reference point (eg North or third reference point) you can calculate the angle using the sine and cosine.

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