Hacker News new | past | comments | ask | show | jobs | submit login

does anyone know why the default location is cupertino in the ios simulator? i want to think it's because of speed (why take time to find your location during each run?), but i'm starting to wonder if it's because the difficulty in getting an accurate location lock on a wifi network for example.

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...




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 believe the simulator can also do location by wifi if possible.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: