开发者

How to find the radius (in meters) of an overlay item in MapView

开发者 https://www.devze.com 2023-02-27 10:06 出处:网络
I am attempting to program an app for Android that depends on the user being within a certain radius of a set location.

I am attempting to program an app for Android that depends on the user being within a certain radius of a set location.

What I would like to know, is how to calculate (and store) the radius in meters of the circle that the user draws onto the map overlay. For example, the user zooms to whatever level they want, touches a point and adjusts a slider to increase or decrease the radius.

I want to find that radius in meters, rat开发者_如何学运维her than pixels over the projection.

Thanks.


You can calculate the difference in distance between 2 locations/points by using geocoder

0

精彩评论

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

关注公众号