Ram*_*mbo 6 iphone location distance
我想把设施放在显示用户选择的两个地方之间的距离.
是否有可用的示例源代码/服务?
提前致谢.
Chr*_*s R 12
该CoreLocation框架提供的能力,以制定出的距离,以米为单位,两点之间:
- (CLLocationDistance)getDistanceFrom:(const CLLocation *)location
Run Code Online (Sandbox Code Playgroud)
您可以CLLocation使用纬度和经度初始化对象:
- (id)initWithLatitude:(CLLocationDegrees)latitude longitude:(CLLocationDegrees)longitude
Run Code Online (Sandbox Code Playgroud)
| 归档时间: |
|
| 查看次数: |
5760 次 |
| 最近记录: |