0
A
回答
0
的理解从属,这里是简单的场景: 只需从你的字典中获取所有"CLLocationCoordinate2D"
。
对于前:
MKPointAnnotation *annotaion=[MKPointAnnotaion alloc]alloc];
CLLocationCoordinate2D pointACoordinate = [annotation coordinate];
// If you have the co-ordinates in hand , then just make " CLLocation *loc2; " using Co-ordinates
loc2 = [[CLLocation alloc] initWithLatitude:pointACoordinate.latitude longitude:pointACoordinate.longitude];
然后放环或取你想用。如果你想实现比其他所有使用该
CLLocationDistance nearLocation=[ location distanceFromLocation:loc2]; // location --> your current Location
比较来计算距离越短:然后,只需按照saury answer
,他们很好地达到完美。
0
相关问题
- 1. 找到当前位置的经纬度
- 2. 如何找到纬度/经度/纬度点之间的距离?
- 3. JSON经度纬度最近的位置
- 4. 如何找到当前位置'纬度经度
- 5. 找到经纬度的距离
- 6. 地理位置和计算从当前经纬度到另一经度纬度的距离
- 7. 如何从两个位置的经度和纬度找到距离?
- 8. 如何找到最近的百米纬度和根据当前位置的android
- 9. 从我的当前位置获取距离最近的位置
- 10. 使用纬度和经度计算到位置的距离
- 11. 如何查找距某点X距离的经度和纬度?
- 12. 当前位置,经度和纬度
- 13. 找到2个经纬度点之间的距离(单位:米)
- 14. 获取当前位置的经纬度
- 15. 如何排序距离给定点(经度和纬度)最近的点列表?
- 16. 查找当前位置的经度和纬度
- 17. 如何确定我的当前位置(经度和纬度)?
- 18. 如何获取黑莓当前位置的经度和纬度?
- 19. 如何获取Android中当前位置的纬度和经度?
- 20. 地理位置:获取纬度和经度与距离
- 21. 如何使用纬度和经度计算距离和方位?
- 22. 按特定距离查找距离目标位置最近的位置
- 23. Google Places自动完成功能距离当前位置最近
- 24. 附近地点的经纬度位置
- 25. Android - 如何获取当前位置(经度和纬度)?
- 26. 如何获取当前位置(经度和纬度)
- 27. 我如何根据距离单个纬度/经度的距离对一组纬度/经度进行排序?
- 28. 如何找到从当前位置到给定位置的距离?
- 29. 基于经度和纬度计算最近位置的算法
- 30. 如何使用纬度和经度查找最近的商店?
“我计算哪个点离ios当前点最近?” - 我不知道你是否计算它。我目前不知道你在做什么。 – 2013-06-13 11:15:51
想根据坐标来计算...? –
是的,我想根据坐标计算 – sabeer