BlackBerry Forums Support Community               

Closed Thread
 
LinkBack Thread Tools
Old 09-29-2009, 03:34 PM   #1 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default Distance calculation

Please Login to Remove!

Formula for distance calculation includs 'acos' that is not supported by API (Math, MathUtils) versions 4.5 and lower. The 'acos' is available in versions 4.7 and up.

How can I calculate a distance by latitude and longitude in app for regular non-touchable devices? Is there any formula for acos calculation?
Offline  
Old 09-29-2009, 06:09 PM   #2 (permalink)
BlackBerry Extraordinaire
 
Join Date: Mar 2008
Location: Austin, TX
Model: 9700
PIN: N/A
Carrier: T-Mobile
Posts: 1,644
Post Thanks: 0
Thanked 34 Times in 33 Posts
Default

acos is just the inverse of cos.

See this article:

Inverse trigonometric functions - Wikipedia, the free encyclopedia
Offline  
Old 10-01-2009, 04:00 PM   #3 (permalink)
Knows Where the Search Button Is
 
Join Date: Jul 2009
Model: 7100T
PIN: N/A
Carrier: Sprint
Posts: 39
Post Thanks: 0
Thanked 0 Times in 0 Posts
Default

I created my own method. It works.

Thanks
Offline  
Closed Thread


Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On

LincolnP653S Electrically Driven Oil Pump Centro-Matic Fluid Lubricant Ram
$585.0
 LincolnP653S Electrically Driven Oil Pump  Centro-Matic Fluid Lubricant Ram   pictureLincoln Centro-Matic Fluid Lubricant Ram Pump
$82.02
Lincoln Centro-Matic Fluid Lubricant Ram Pump   pictureAlemite 4253U Electrically Driven Oil Pump Centro-Matic Fluid Lubricant Ram
$229.64
Alemite 4253U Electrically Driven Oil Pump  Centro-Matic Fluid Lubricant Ram pictureFanuc A16B-1210-0470/03B ROM/RAM Memory Circuit Board A16B-1210-0470 /03B
$10.0
Fanuc A16B-1210-0470/03B ROM/RAM Memory Circuit Board A16B-1210-0470 /03B pictureHP 82215A 128K RAM Card for HP 48GX/SX Calculator
$89.99
HP 82215A 128K RAM Card  for HP 48GX/SX Calculator picture






Copyright 2004-2016 BlackBerryForums.com.
The names RIM and BlackBerry are registered Trademarks of BlackBerry Inc.