Abhik Sen Gupta
Abhik Sen Gupta

Reputation: 11

How to get the Neighbouring cell tower info in the ios using the CoreTeelephony Framework

I am making an iOS app where i need to get the my current operator details like LAC,MCC,MNC ,Latitude Longitude Signal strength & neighbouring cell tower information, From CoreTelephony Framework CTCarrier class we get only the LAC,MCC,MNC & operator name.

I google it and some forum told that for that we need to use the Apple Private API.

Can any one give me idea how to get this information ?

Upvotes: 1

Views: 4447

Answers (1)

creker
creker

Reputation: 9570

LAC, CID, MCC, MNC can be retrieved for current serving cell Get CellID, MCC, MNC, LAC, and Network in iOS 5.1

I don't think you can get that kind of information for neighbor cells. CoreTelephony gives you full info only for serving cell. Neighbor cells will give you signal strength, ARFCN and may be some other stuff but not LAC and CID.

Even on a baseband level iPhone doesn't give you that kind of info. I tried to send commands through QMI but it gives the same info. So it's more likely baseband interface limitation. Maybe if we find debugging interface we could get more out of it.

As for latitude and longitude. I don't know of any APIs to retrieve those. iOS does query cell tower location internally from Apple servers but I didn't find any APIs to make you own queries. You better of with public (or not) services that will return you cell tower location - all they need is LAC, CID, MCC, MNC. There are many of those - google, yandex, microsoft, apple. Some are public, others are not.

You can even try to query from iOS cache. iOS caches cell tower locations in a SQLite database. Look for *.db files in /var/root/Library/Caches/locationd

Upvotes: 3

Related Questions