Re:Building a location based iPhone App: from idea to my fir...
by andrewljohnson on Tuesday January 11, 2011 @03:57PM
(#2093451)
I'm sure the reasons are just a) they wanted to hard-code a location for the simulator, since it doesn't have a GPS, and b) Apple is located in Cupertino.
For my GPS-app, we have code to simulate fake GPS readings on the simulator.
i've found that detecting geolocation on a non-mobile device such as a laptop (even using the latest w3c navigator.geolocation standard) is pretty unreliable. it took me some searching to figure out that the function has an infinite timeout by default, which makes debugging interesting. sometimes just doesn't get the location at all. a professor had expressed the same sentiments in more length here: http://stackoverflow.com/questions/3397585/navigator-geoloca...