Skip to content

Commit

Permalink
Fix longitude in trackOnce (#79)
Browse files Browse the repository at this point in the history
  • Loading branch information
tjulien authored Feb 24, 2023
1 parent f00742b commit 487bcca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ios/Plugin/Plugin.swift
Original file line number Diff line number Diff line change
Expand Up @@ -255,7 +255,7 @@ public class RadarPlugin: CAPPlugin, RadarDelegate {
}

let latitude = call.getDouble("latitude") ?? 0.0
let longitude = call.getDouble("latitude") ?? 0.0
let longitude = call.getDouble("longitude") ?? 0.0
let accuracy = call.getDouble("accuracy") ?? 0.0
let coordinate = CLLocationCoordinate2DMake(latitude, longitude)
let location = CLLocation(coordinate: coordinate, altitude: -1, horizontalAccuracy: accuracy, verticalAccuracy: -1, timestamp: Date())
Expand Down

0 comments on commit 487bcca

Please sign in to comment.