Fixing the iPhone's GPS "Ghana" bug

The iPhone's location function return data in the form "59.12345,-0.122344". Unfortunately if you pass this data to the iPhone maps application, it drops you in the sea somewhere off Ghana.

The solution? Well, while we wait for Apple (or Google?) to fix their parser, there's a trivial one. Rewrite the location string in the format "59.12345N,0.12234W" and you'll be perfectly positioned.

That took all of 5 minutes to work out, so it's a great pity that the developers of apps such as Cardinal and Geohash didn't take the time for proper on-device testing.
Posted by parsingphase, 2008-09-14 11:01

Anonymous user



Contact Richard