如何将坐标转换为GeoPoint对象的格式?转换为、坐标、如何将、对象

2023-09-07 16:41:42 作者:懒成瘾

我得到纬度和经度坐标的格式如下:

I am getting latitude and longitude coordinates in following format.

<coordinates>N44 47.975 E20 17.052</coordinates>

任何人都可以指导我如何将其转换为GeoPoint对象格式在地图上显示呢? 任何帮助将是AP preciated。

Can anyone guide me how to convert it to geoPoint format to display it on map? Any help would be appreciated.

推荐答案

的文档说明了一切:

GeoPoint point = new GeoPoint((int)(47.975 * 1E6), (int)(17.056 * 1E6))