How to convert polar system to latitude and longit

2019-08-29 07:53发布

问题:

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));