I want to know if it is possible for iPhone to find the LAC and Cell Id as provided in the android os.
Like find the Location area code to find the location of the device etc.
I'm interested in this because I need to determine the approximate location of the device even with location ser开发者_Python百科vices turned off.
Thanks in advance..
*3001#12345#*
and tap Call. Enter Field Mode.Field mode reveals many of the inner settings of your iPhone, specifically up-to-date network and cell information.
You can't find the LAC and Cell Id, but you can find the approximate location using CoreLocation. You can then use this to get an approximate area code if you have a suitable mapping of geo-locations to area codes; but it's unlikely that you'll be able to find a perfect mapping in any case, even if you knew the Cell Id.
The documentation for Core Location is here:
http://developer.apple.com/library/ios/documentation/CoreLocation/Reference/CoreLocation_Framework/
精彩评论