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

NEW Allen Bradley AB 1746-NIO4V SLC 4 point Analog Voltage Comb Module
$419.9
NEW Allen Bradley AB 1746-NIO4V SLC 4 point Analog Voltage Comb Module picture20pcs 2.2nF 2kV 222 High Voltage Disc Ceramic Capacitor Elecsound
$3.9
20pcs 2.2nF 2kV 222 High Voltage Disc Ceramic Capacitor  Elecsound picture2500 Pc LM317MDT TO-252 LM317MDTRKG 1.2-37V ADJ VOLTAGE REGULATOR SMD SMT DPAK
$1000.0
2500 Pc LM317MDT  TO-252 LM317MDTRKG 1.2-37V ADJ VOLTAGE REGULATOR SMD SMT DPAK  pictureVoltage Ammeter Shell 0.56 3Bit Digital Tube Case Plastic Shell
$0.99
Voltage Ammeter Shell 0.56 3Bit Digital Tube Case Plastic Shell pictureSet of 4 NBS Coaxial Thermal Voltage Converter 0.5V 1V 3V 10V
$699.99
Set of 4 NBS Coaxial Thermal Voltage Converter 0.5V 1V 3V 10V picture






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