Coordinates
public class Coordinates: JSON
Inheritance
Initializers
init(latitude:longitude:altitude:accuracy:)
public init(latitude: Double,
longitude: Double,
altitude: Double? = nil,
accuracy: Float? = nil)
- Parameters:
- latitude: Double
- longitude: Double
- altitude: Double
Properties
latitude
public let latitude: Double
longitude
public let longitude: Double
altitude
public let altitude: Double?
accuracy
public let accuracy: Float?
Methods
toJSONArray()
public func toJSONArray() -> Any
fromDictionary(_:)
public static func fromDictionary(_ dict: NSDictionary) -> Coordinates
toLngLatJSONObject()
public func toLngLatJSONObject() -> [String: Double]
toJSONObject()
public override func toJSONObject() -> Any