开发者

how to convert coordinates to geoPoint format?

开发者 https://www.devze.com 2023-02-26 03:40 出处:网络
I am getting latitud开发者_如何学Ce and longitude coordinates in following format. <coordinates>N44 47.975 E20 17.052</coordinates>

I am getting latitud开发者_如何学Ce 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.


The documentation explains everything:

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

精彩评论

暂无评论...
验证码 换一张
取 消