MNCalcUtils
open class MNCalcUtils
This class contains calculation functions.
-
Call this function to get the distance between location a and location b.
Declaration
Swift
public static func distance(a: MNMercator, b: MNMercator) -> Double
Parameters
a
A location in the map.
b
A location in the map.
Return Value
A double value represents distance between two locations.
-
Calculate current distance from the property.
Declaration
Swift
public static func distanceFrom(propertyInfo: PropertyInfo) -> Double
Parameters
propertyInfo
property distance
Return Value
In KM.