Welcome!

Welcome to the official BlackBerry Support Community Forums.

This is your resource to discuss support topics with your peers, and learn from each other.

inside custom component

Java Development

Reply
Contributor
Posts: 31
Registered: ‎05-18-2010
My Device: 9550
My Carrier: Blackberry

Get CellID and LAC in CDMA devices (OS5 and greater)

Hi, 


I am stuck at this point that how to get CellID and LAC in CDMA devices supporting OS 5 and greater, infact i have to get Latitude and Longitude without using GPS, So i have implemented the solution for GPRS devices but for CDMA devices i am unable to map CellID and LAC.
I did read so many posts on this forum and others saying that CDMAInfo provided BID = CellID and NID = LAC, but it never worked at all and also tried different combinations for LAC such as using SID as LAC, but it also didn't work.
So hopefully my question will be understood, kindly help me to move ahead and Solve this problem.


Thanks 

New Contributor
Posts: 3
Registered: ‎03-14-2013
My Device: BBY 9860
My Carrier: Meteor

Re: Get CellID and LAC in CDMA devices (OS5 and greater)

Check this link in order to grab the Cell ID, LAC, MNC & MCC information from the client.

http://supportforums.blackberry.com/t5/Java-Development/how-to-retrieve-CellID-MNC-MCC-and-LAC/m-p/3...

 

However you will need another online system to resolve these values as this alone does not contain long/lat co-ordinates.

Look up OpenCellID.org for an open source DB for checking cell tower DBs, by generating a simplee http request you can parse the response easily and quickly.

 

 

Contributor
Posts: 31
Registered: ‎05-18-2010
My Device: 9550
My Carrier: Blackberry

Re: Get CellID and LAC in CDMA devices (OS5 and greater)

Thanks for your answer.
My only concern now is to get CellID and LAC in CDMA devices furher i have a Solution to get Latitude and Longitude, for GPRS devices, i am using GPRSInfo API to get CellID and LAC but not able to get CellID and LAC through CDMAInfo API or any other API.

Contributor
Posts: 31
Registered: ‎05-18-2010
My Device: 9550
My Carrier: Blackberry

Re: Get CellID and LAC in CDMA devices (OS5 and greater)

can anyone help me in this regard to map CellID and LAC in CDMA devices?
I am using google api which takes cellID as parameter and return Latitude and Longitude.
New Contributor
Posts: 3
Registered: ‎03-14-2013
My Device: BBY 9860
My Carrier: Meteor

Re: Get CellID and LAC in CDMA devices (OS5 and greater)

Developer
Posts: 19,616
Registered: ‎07-14-2008
My Device: Not Specified

Re: Get CellID and LAC in CDMA devices (OS5 and greater)

What Google colution are you using?  AFAIK, the GEARS API that they used to provide has been withdrawn.

Contributor
Posts: 31
Registered: ‎05-18-2010
My Device: 9550
My Carrier: Blackberry

Re: Get CellID and LAC in CDMA devices (OS5 and greater)

Thanks Daryl Peters, I have reviewed your link and found that CellID is maped to CDMAInfo.getcellinfo.getBID() and LAC is maped to CDMAInfo.getcellinfo.getNID() that what i already tried but here in your link different Google API is used "http://www.google.com/loc/json" while I am using this API "http://www.google.com/glm/mmap", So may be changing the API can solve my problem.


I will let you inform after implementing this patch.