how to convert coordinates to geoPoint format?

此生再无相见时 提交于 2020-01-11 10:43:17

问题


I am getting latitude and longitude coordinates in following format.

<coordinates>N44 47.975 E20 17.052</coordinates>

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


回答1:


The documentation explains everything:

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


来源:https://stackoverflow.com/questions/5701824/how-to-convert-coordinates-to-geopoint-format

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