Hi all,
I have a very puzzling conundrum. Consider the following situation:
At home I have a wireless network set up for the family to use (protected and SSID hidden). My iPhone is set up to use the wireless network here at home and of course, many other places. While it is connected, it is fairly likely that the location services/GPS is activated because I barely ever feel the need to turn it off.
Recently I have began some basic iPhone/Cocoa Touch development and while investigating Core Data, I downloaded Apple's "Locations" sample code which, like any other app using location data, has to call the Location API to do anything with location data. I first deployed it to my iPhone and started logging some locations. Impressed by Core Data I went back to make some changes to see what you could fine tune. This time I ran it in the simulator on my MBP. Up pop's the Mac OS X location window and naturally I hit Allow. When I add a location (expecting it to fail), it adds co-ordinates almost identical (sans just a second) to those added using my iPhone while using WiFi in the front yard. Intrigued, I disable AirPort on the MBP, no more location data. I go a little further and disable the internet connection from inside the modem and stay connected to the WiFi. No location data. Enable the internet again, and guess what, location data is back.
What am I to make of this? Is Apple grabbing the MAC addresses of WiFi base stations and associating them with GPS Co'ords and putting it all in a database? I am going to check out just what is happening when the calls are made to save a location (save some packet goodness), but this is peculiar. Or at least I think so. It could be another possibility, that the Mac finds the iPhone on the WiFi and requests a GPS fix. I will try that too.
Anyone else hear of anything like this? Or am I just crazy?
thanks
I have a very puzzling conundrum. Consider the following situation:
At home I have a wireless network set up for the family to use (protected and SSID hidden). My iPhone is set up to use the wireless network here at home and of course, many other places. While it is connected, it is fairly likely that the location services/GPS is activated because I barely ever feel the need to turn it off.
Recently I have began some basic iPhone/Cocoa Touch development and while investigating Core Data, I downloaded Apple's "Locations" sample code which, like any other app using location data, has to call the Location API to do anything with location data. I first deployed it to my iPhone and started logging some locations. Impressed by Core Data I went back to make some changes to see what you could fine tune. This time I ran it in the simulator on my MBP. Up pop's the Mac OS X location window and naturally I hit Allow. When I add a location (expecting it to fail), it adds co-ordinates almost identical (sans just a second) to those added using my iPhone while using WiFi in the front yard. Intrigued, I disable AirPort on the MBP, no more location data. I go a little further and disable the internet connection from inside the modem and stay connected to the WiFi. No location data. Enable the internet again, and guess what, location data is back.
What am I to make of this? Is Apple grabbing the MAC addresses of WiFi base stations and associating them with GPS Co'ords and putting it all in a database? I am going to check out just what is happening when the calls are made to save a location (save some packet goodness), but this is peculiar. Or at least I think so. It could be another possibility, that the Mac finds the iPhone on the WiFi and requests a GPS fix. I will try that too.
Anyone else hear of anything like this? Or am I just crazy?
thanks