Hi Adela and team,
We've been going through migrating our app from Skobbler 2.5.1 to Skobbler 3.0 beta (with traffic) and have run into a potential bug.
Debugging through the app, we noticed that the following:
Code:
SKCoordinate c = SKPositionerManager.getInstance().getCurrentGPSPosition(false).getCoordinate();
returns an SKCoordinate with the latitude and longitude values reversed. I know one of the major changes to the SKCoordinate constructor involved switching the order of the longitude and latitude parameters in the constructor signature, so I'm wondering if this change was not made in the native code called from either the getCurrentGPSPosition() or from the reportNewGPSPosition() methods.
Here is a screenshot showing my debugging of the reportNewGPSPosition() method showing that the latitude and longitude are properly set in the passed SKPosition variable. (33.xxxx, -118.xxxx)
Screen Shot 2016-06-20 at 11.04.52 AM.jpg
And here is a screenshot showing my debugging of the getCurrentGPSPosition() method where you can see that the returned SKCoordinate has the latitude and longitude reversed. (-118.xxxx, 33.xxxx)
Screen Shot 2016-06-20 at 11.09.25 AM.jpg
Let me know if you have suggestions for possible developer error on my end, but currently I'm under the assumption that it might be an issue within the SDK.
Thanks for any help you can provide!
Best,
Keith
Bookmarks