How to convert polar system to latitude and longitude

≯℡__Kan透↙ 提交于 2020-03-05 07:28:21

问题


i am trying to develop an android app . I use a web service that require my location in latitude and longitude (where i am standing) and giving a feedback another location data. But, the another location data is given with polar system which the origin of polar system is the place where i stand.

My question is, how to convert the given polar system data (distance, and degree from the north) to be the another location's latitude and longitude. ?

Sorry for my bad english.


回答1:


Use formula:

Latitude = distance * (Math.cos(degree));
Longitude = distance * (Math.sin(degree));


来源:https://stackoverflow.com/questions/19077215/how-to-convert-polar-system-to-latitude-and-longitude

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!