问题
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