I've reimplemented tons of APIs when they didn't work. But it occurs to me now that this could simply be a documentation error.
-90 and 270 are equivalent. I assumed the OP knows that, and was still unhappy with the result. Perhaps he wants to verify the result. A bit of googling and a calculator will suffice. The documentation SAYS that it returns it in degrees east of true north, which *I* interpret as being the positive number of degrees you have to turn to the east to get to that bearing. I also claim that's what it SHOULD return, for various minor reasons. But the only critical thing is that it BE CLEARLY DOCUMENTED and BEHAVE AS DOCUMENTED. I haven't tried it myself, but if he's right, it fails one of those. In any event, even if the API is working as designed, I think a bug report is in order; the ambiguity in the doc at a minimum should be fixed. On Jun 14, 1:40 am, MobDev <[email protected]> wrote: > This obviously is all true, > BUT why re-invent the wheel ? I mean if there is an implemented method > which should offer that functionality the most logical thing is to use > that one instead of writing your own methods.. Or did you guys also > rewrote all other API's as well ? > Why even supply ANY API's at all then ? ;) > > On 14 jun, 08:40, Bob Kerns <[email protected]> wrote: > > > > > I don't know if I would term anything to do with spherical trig as > > "easy", exactly, even with my background in math. > > > On the other hand, it's simple to program, once you know the right > > theorems. This is well covered in any serious textbook on nautical > > navigation. > > > On Jun 13, 10:00 pm, Frank Weiss <[email protected]> wrote: > > > > Why not do it yourself? The math is easy - Google is your friend: get > > > bearing between two lat longs -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

