Browse Source

上传经纬度数据适配高德用的

weicu
liwei1dao 1 year ago
parent
commit
96d82ee317
  1. 2
      local_plugins/location_service/ios/location_service/Sources/location_service/LocationData.swift

2
local_plugins/location_service/ios/location_service/Sources/location_service/LocationData.swift

@ -5,10 +5,12 @@ public struct LocationData: Codable {
public let latitude: Double
public let longitude: Double
public let timestamp: TimeInterval
public let latitudeandlongitude: String
public init(latitude: Double, longitude: Double,timestamp: TimeInterval) {
self.latitude = latitude
self.longitude = longitude
self.timestamp = timestamp
self.latitudeandlongitude = "\(latitude),\(longitude)"
}
}

Loading…
Cancel
Save