简体   繁体   English

如何在SKMaps中计算两个位置之间的距离

[英]How to calculate distance between two locations in SKMaps

I am using skobbler map framework. 我正在使用skobbler映射框架。 In nearby search I am getting near places I need to get the distance of each locations from the current location by using Skobbler framework (with out using MapKit). 在附近的搜索中,我正在靠近地方,我需要使用Skobbler框架(不使用MapKit)来获取每个位置与当前位置的距离。

You can use the CLLocation object for this. 您可以为此使用CLLocation对象。 This object provides the method: (CLLocationDistance)distanceFromLocation:(const CLLocation *)location. 该对象提供以下方法:(CLLocationDistance)distanceFromLocation:(const CLLocation *)location。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM