I’m back from standing in the fields, trying to get figure out GPS on my iPhone. No luck at all.
If I build the exact same project on Android and run it on the Galaxy Tab 2 7.0, it finds my position instantly. Even here inside the house at my desk it reports a horizontal and vertical accuracy of 16m and gives me nearly perfect longitude and latitude.
The iPhone 4S on the other hand reports a vertical accuracy of 1.3 million km even outside in the fields (horizontal accuracy 4m!) and (now comes the best part) it reports pretty much the exact same (correct) longitude value I get on Android, but as latitude! What the hell? And the longitude value is just weird. If I do (longitude - 340f) * -1f I get close to what the latitude it’s supposed to be. What’s going on?
This is in Unity 4.0.0f7
UPDATE: I figured it out. It’s actually simple: On iOS use the latitude as longitude and the timestamp (!) as latitude and you’ve got it! I guess I’m going to go and report a bug now… mumble curse