Skip to content

Commit

Permalink
Fix lat/lon swapping
Browse files Browse the repository at this point in the history
  • Loading branch information
4eRTuk committed Nov 22, 2016
1 parent cbcaa84 commit 4288baf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/src/main/java/com/nextgis/logger/engines/GPSEngine.java
Expand Up @@ -116,11 +116,11 @@ public static GeoPoint getFix(ArrayList<InfoItem> items) {
if (gpsItem != null) {
Object value = gpsItem.getColumn(LoggerConstants.HEADER_GPS_LAT).getValue();
if (value instanceof Double)
x = (double) value;
y = (double) value;

value = gpsItem.getColumn(LoggerConstants.HEADER_GPS_LON).getValue();
if (value instanceof Double)
y = (double) value;
x = (double) value;
}

GeoPoint point = new GeoPoint(x, y);
Expand Down

0 comments on commit 4288baf

Please sign in to comment.