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. New to the forum? Please visit the ‘Getting Started’ link below.
inside custom component

Java Development

Reply
Contributor
rajivgupta1037
Posts: 17
Registered: ‎04-16-2011
My Carrier: BB

Implement the cell tower triangulation in Blackberry java

Hi,

 

I am new in blackberry development, I want to get the lat,lon and accuracy from cell tower tringulation.

 

what is the cell tower tringulation and how to implement .

 

Please give me any short example.

 

Thanks in advance

Please use plain text.
Developer
peter_strange
Posts: 17,722
Registered: ‎07-14-2008

Re: Implement the cell tower triangulation in Blackberry java

[ Edited ]

Short answer - don't try to do this.

 

There are various bits of code around that try to do this using Google Gear Server, which is deprecated.  There are other servers out there that will take your Cell tower location and attempt to determine your location using it too I believe.  However I recommend that you just use the BlackBerry supplied equivalents.

 

You can read more here:

http://supportforums.blackberry.com/t5/Java-Development/Location-APIs-Start-to-finish/ta-p/571949

 

And have a look at the SimpleLocationApi you will find here:

https://developer.blackberry.com/java/samples/

Please use plain text.
New Developer
cersalma
Posts: 10
Registered: ‎08-29-2011
My Carrier: Nextel

Re: Implement the cell tower triangulation in Blackberry java

Try this:

 

                criteria.setHorizontalAccuracy(Criteria.NO_REQUIREMENT);
                criteria.setVerticalAccuracy(Criteria.NO_REQUIREMENT);
                criteria.setCostAllowed(true);
                criteria.setPreferredPowerConsumption(Criteria.POWER_USAGE_LOW);

 

And read this:

 

http://docs.blackberry.com/en/developers/deliverables/3803/GPS%20and%20BlackBerry%20Maps%20Developme...

 

Hope it Helps,

MC

Please use plain text.
Regular Contributor
walkin
Posts: 52
Registered: ‎11-24-2011
My Carrier: Rogers

Re: Implement the cell tower triangulation in Blackberry java

" just use the BlackBerry supplied equivalents"

with all due respect peter, it may not work for CDMA network, 

unless PDE was obtained and set up for certain carriers.

In fact, I bookmarked your post how does BB Maps do it and wait for...

Please use plain text.