如何确定经纬度坐标以创建用户位置周围1英里半径?我不介意需要多少坐标,但我想在一个位置周围创建一个圆形半径。
例如:
如果用户的位置为=
Latitude: 44.947 Longitude: -93.098
我该如何确定哪些经纬度坐标集团可以在上述位置周围1英里的半径内呢?(上面的8是斜体字,因为我并不介意它是少于还是多于8个坐标。)
如何实现这一目标?
目前已有的代码:
LocationManager lm = (LocationManager)getSystemService(Context.LOCATION_SERVICE);
Location location = lm.getLastKnownLocation(LocationManager.GPS_PROVIDER);
double longitude = location.getLongitude();
double latitude = location.getLatitude();
有人有什么想法吗?
虽然我很高兴人们尝试帮忙,但下面给出的答案并没有回答这个问题。