//第一个坐标

        CLLocation *before=[[CLLocation alloc] initWithLatitude:29.553968 longitude:106.538872];

        //第二个坐标

        CLLocation *current=[[CLLocation alloc] initWithLatitude:29.552959 longitude:106.537199];

        // 计算距离

        CLLocationDistance meters=[current distanceFromLocation:before];

    

        NSLog(@"-------%lf",meters);

 

相关文章:

  • 2021-12-19
  • 2022-12-23
  • 2021-11-27
  • 2021-12-21
  • 2021-12-11
  • 2022-01-16
  • 2021-11-27
猜你喜欢
  • 2022-01-13
  • 2021-11-27
  • 2021-11-27
  • 2021-11-21
  • 2022-12-23
  • 2021-11-27
相关资源
相似解决方案